-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
38 lines (38 loc) · 1.2 KB
/
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": {
"noImplicitAny": false,
"strictNullChecks": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"lib": [
"es5",
"es6",
"es7",
"es2015",
"es2016",
"es2017",
"dom"
],
"pretty": true,
"noUnusedLocals": true, // 不允许有未使用的局部变量
"noUnusedParameters": true, // 不允许有未使用的参数
"skipLibCheck": true, // 编译时跳过d.ts的类型检查提高编译效率
"noEmitHelpers": false, // 不在每个用到辅助库方法的文件都生成一次
"importHelpers": true, // 使用导入的方法导入辅助库
"alwaysStrict": true, // 使用严格模式
"typeRoots": [ // 指定声明文件的根目录
"./node_modules/@types"
],
"types": [ // 指定声明文件中哪些包才能被编译
"jquery",
"node"
]
},
"include": [
"./src/app/**/*.ts"
// ...需要用到的声明文件
]
}