Skip to content

Commit

Permalink
📝 Update Typescript section of README
Browse files Browse the repository at this point in the history
  • Loading branch information
frinyvonnick authored Feb 8, 2022
1 parent 7c308dd commit 054fc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ nodeHtmlToImage({

### TypeScript support

Types are included in the package. Enable the `esModuleInterop` compiler flag then change all references of `require` with `import` statements and you should be good to go:
The library is written in Typescript so it is available out of the box:

```ts
import nodeHtmlToImage from 'node-html-to-image'
Expand Down

0 comments on commit 054fc88

Please sign in to comment.