代码拉取完成,页面将自动刷新
// https://www.tslang.cn/docs/handbook/compiler-options.html
{
"compilerOptions": {
"useDefineForClassFields": true,
// 在表达式和声明上有隐含的 any类型时报错。
"noImplicitAny": false,
// 当 this表达式的值为 any类型的时候,生成一个错误。
"noImplicitThis": false,
// 决定如何处理模块。或者是"Node"对于Node.js/io.js,或者是"Classic"(默认)。查看模块解析了解详情。
"moduleResolution": "bundler",
// 启用所有严格类型检查选项。
"strict": true,
// "jsxFactory": "",
// 生成相应的 .map文件。
"sourceMap": false,
// 生成相应的 .d.ts文件。
// "declaration": true,
// "declarationDir": "lib",
"outDir": "lib",
// 删除所有注释,除了以 /!*开头的版权信息。
"removeComments": true,
// 请考虑使用 “--resolveJsonModule“ 导入带 “.json“ 扩展的模块
"resolveJsonModule": true,
// esModuleInterop选项的作用是支持使用import d from 'cjs'的方式引入commonjs包。
// "esModuleInterop": true,
// 忽略所有的声明文件( *.d.ts)的类型检查。
"skipLibCheck": true,
// 启用实验性的ES装饰器。
"experimentalDecorators": true,
// 编译过程中需要引入的库文件的列表。
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
// 解析非相对模块名的基准目录
"baseUrl": ".",
// 仅用来控制输出的目录结构
"rootDir": ".",
// 指定ECMAScript目标版本 "ES3"(默认), "ES5", "ES6" "ES2015", "ES2016", "ES2017"或 "ESNext"。
"target": "ES2020",
// 指定生成哪个模块系统代码
"module": "ESNext",
// 在 .tsx文件里支持JSX: "React"或 "Preserve"。查看 https://www.tslang.cn/docs/handbook/jsx.html
// "jsx": "react",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
},
"include": [
"./*.ts",
"src/**/*.ts",
],
"exclude": [
"node_modules"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。