Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add prerequisite for typescript configuration #539

Merged
merged 3 commits into from
Feb 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ 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:
sprohaszka marked this conversation as resolved.
Show resolved Hide resolved

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

Since version `v6+` there is native TypeScript support.
sprohaszka marked this conversation as resolved.
Show resolved Hide resolved

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