We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d65086 commit ef8e218Copy full SHA for ef8e218
README.md
@@ -73,6 +73,17 @@ const randomCard = faker.helpers.createCard(); // random contact card containing
73
74
Since version `v6+` there is native TypeScript support.
75
76
+In order to have faker working properly, you need to check if these `compilerOptions` are set correctly in your `tsconfig` file:
77
+
78
+```json
79
+{
80
+ "compilerOptions": {
81
+ "esModuleInterop": true,
82
+ "moduleResolution": "Node"
83
+ }
84
+}
85
+```
86
87
If you want for whatever reason the versions prior to `v6`,
88
you can use `@types/faker` and rebind the declarations to the `@faker-js/faker` package with a `faker.d.ts` file in your e.g. src folder.
89
0 commit comments