-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
36 lines (34 loc) · 1.12 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
{
"compilerOptions": {
// 基本选项
"module": "CommonJS",
"target": "ES2020",
"lib": [
"ES2020"
],
"allowJs": true,
// 严格的类型检查选项
"strict": false,
"noImplicitAny": false, //有隐含的 any类型时报错
"strictNullChecks": true, //启用严格的 null 检查
"noImplicitThis": true, //当 this 表达式值为 any 类型的时候,生成一个错误
"alwaysStrict": true, //以严格模式检查每个模块,并在每个文件里加入 'use strict'
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictPropertyInitialization": true,
"typeRoots": [
"./typings"
],
},
"include": [
"./**/*.ts"
, "miniprogram/packages/pcm_to_wav.ts", "miniprogram/packages/Udp.ts" ],
"exclude": [
"node_modules"
]
}