electro-sb commited on
Commit
cfe37d6
·
1 Parent(s): 6280246

Adjust TypeScript configuration for better module resolution and type inference

Browse files
Files changed (2) hide show
  1. web/tsconfig.json +2 -1
  2. web/tsconfig.node.json +0 -1
web/tsconfig.json CHANGED
@@ -7,6 +7,7 @@
7
  "skipLibCheck": true,
8
  "moduleResolution": "node",
9
  "allowSyntheticDefaultImports": true,
 
10
  "resolveJsonModule": true,
11
  "isolatedModules": true,
12
  "noEmit": true,
@@ -19,7 +20,7 @@
19
  "paths": {
20
  "@/*": ["src/*"]
21
  },
22
- "types": ["vite/client", "node"]
23
  },
24
  "include": ["src", "**/*.ts", "**/*.tsx", "src/types/*.d.ts"],
25
  "exclude": ["vite.config.ts"],
 
7
  "skipLibCheck": true,
8
  "moduleResolution": "node",
9
  "allowSyntheticDefaultImports": true,
10
+ "esModuleInterop": true,
11
  "resolveJsonModule": true,
12
  "isolatedModules": true,
13
  "noEmit": true,
 
20
  "paths": {
21
  "@/*": ["src/*"]
22
  },
23
+ "types": ["vite/client", "node", "vitest/globals", "vitest/import-meta"]
24
  },
25
  "include": ["src", "**/*.ts", "**/*.tsx", "src/types/*.d.ts"],
26
  "exclude": ["vite.config.ts"],
web/tsconfig.node.json CHANGED
@@ -4,7 +4,6 @@
4
  "skipLibCheck": true,
5
  "module": "ESNext",
6
  "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true,
8
  "jsx": "react-jsx"
9
  },
10
  "include": ["vite.config.ts"]
 
4
  "skipLibCheck": true,
5
  "module": "ESNext",
6
  "moduleResolution": "bundler",
 
7
  "jsx": "react-jsx"
8
  },
9
  "include": ["vite.config.ts"]