Skip to content

Commit 7d2b894

Browse files
Add React and Node types to TypeScript configuration
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 84c9e60 commit 7d2b894

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
"./src/@types",
4848
"./node_modules/@types"
4949
],
50+
"types": [
51+
"react",
52+
"react-dom",
53+
"node"
54+
],
5055
// "types": [], /* Type declaration files to be included in compilation. */
5156
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5257
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */

0 commit comments

Comments
 (0)