-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
38 lines (38 loc) · 939 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"sourceMap": false,
"target": "es2016",
"module": "esnext",
"moduleResolution": "node",
"allowJs": true,
"noUnusedLocals": true,
"strictNullChecks": true,
// "noImplicitAny": true,
"noImplicitThis": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"jsx": "preserve",
"lib": ["esnext", "dom"],
"types": ["./build/env.d.ts"],
"rootDir": ".",
"noEmit": false,
"paths": {
},
"noImplicitAny": false,
"declaration": true, // 需要设置为 true 来支持类型
"declarationDir": "dist", // 类型文件的导出目录
"emitDeclarationOnly": true, // 只生成类型文件
},
"include": [
"packages",
".eslintrc.cjs",
"vite.config.ts",
"build/env.d.ts",
"build/*.js",
"dev/**/*.ts"
]
}