Skip to content

Commit

Permalink
Add prerequisite for typescript configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Prohaszka committed Feb 22, 2022
1 parent 1058e17 commit 4e82e6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ const randomCard = faker.helpers.createCard(); // random contact card containing

### TypeScript Support

In order to have faker working properly, you need to check that in your tsconfig file those compilerOptions are set correctly:

```json
// tsconfig.json
{
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "Node"
}
}
```

Since version `v6+` there is native TypeScript support.

If you want for whatever reason the versions prior to `v6`,
Expand Down

0 comments on commit 4e82e6c

Please sign in to comment.