{
// 编译选项
"compilerOptions": {
// 输出目次
"outDir": "./output",
// 是不是包括能够用于 debug 的 sourceMap
"sourceMap": true,
// 以严厉形式剖析
"strict": true,
// 采纳的模块体系
"module": "esnext",
// 怎样处置惩罚模块
"moduleResolution": "node",
// 编译输出目的 ES 版本
"target": "es5",
// 许可从没有设置默许导出的模块中默许导入
"allowSyntheticDefaultImports": true,
// 将每一个文件作为零丁的模块
"isolatedModules": false,
// 启用装潢器
"experimentalDecorators": true,
// 启用设想范例元数据(用于反射)
"emitDecoratorMetadata": true,
// 在表达式和声明上有隐含的any范例时报错
"noImplicitAny": false,
// 不是函数的一切返回途径都有返回值时报错。
"noImplicitReturns": true,
// 从 tslib 导入外部协助库: 比方__extends,__rest等
"importHelpers": true,
// 编译过程当中打印文件名
"listFiles": true,
// 移除解释
"removeComments": true,
"suppressImplicitAnyIndexErrors": true,
// 许可编译javascript文件
"allowJs": true,
// 剖析非相对模块名的基准目次
"baseUrl": "./",
// 指定特别模块的途径
"paths": {
"jquery": [
"node_modules/jquery/dist/jquery"
]
},
// 编译过程当中须要引入的库文件的列表
"lib": [
"dom",
"es2015",
"es2015.promise"
]
}
}