diff options
Diffstat (limited to 'docs/guide/usage.md')
| -rw-r--r-- | docs/guide/usage.md | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/guide/usage.md b/docs/guide/usage.md index c6dfb4d8..9168e752 100644 --- a/docs/guide/usage.md +++ b/docs/guide/usage.md @@ -99,15 +99,28 @@ You can use Faker without it, but we don't have dedicated error messages for wro In order to have Faker working properly, you need to check if these `compilerOptions` are set correctly in your `tsconfig` file: -```json +::: code-group + +```json [esm] { "compilerOptions": { - "moduleResolution": "Bundler", // "Node10", "Node16" or "NodeNext" + "moduleResolution": "Bundler", // or "Node10", "Node16", "Node20", "NodeNext" "strict": true // Optional, but recommended } } ``` +```json [cjs] +{ + "compilerOptions": { + "moduleResolution": "Bundler", // or "Node20" or "NodeNext" + "strict": true // Optional, but recommended + } +} +``` + +::: + ## Reproducible results Normally Faker will give you different random values each time it is used. |
