-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
28 lines (28 loc) · 1019 Bytes
/
tsconfig.json
File metadata and controls
28 lines (28 loc) · 1019 Bytes
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
{
"compilerOptions": {
"target": "esnext",
"module": "CommonJS",
"jsx": "react-native",
"outDir": "build",
"baseUrl": ".",
"removeComments": false, // 将编译后的文件注释删掉
"noImplicitAny": true, // 如果我们没有一些值设置明确类型,编译器会默认认为这个值为any类型
"allowSyntheticDefaultImports": true, // 允许从没有默认导出的模块中默认导入
"experimentalDecorators": true, // 开启装饰器
"emitDecoratorMetadata": true, // 是否为装上去提供元数据支持,关于元数据,也是ES6的新标准,可以通过Reflect提供的静态方法获取元数据,如果需要使用Reflect的一些方法,需要引用ES2015.Reflect这个库
"skipLibCheck": true, // 跳过声明文件的类型检查
"declaration": true
},
"types": [
"react",
"react-dom",
"react-native"
],
"exclude":[
"build",
"node_modules",
"jest.config.js",
"App.js"
],
"compileOnSave": false
}