0 Star 0 Fork 0

HePing/ifetch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tsconfig.json 2.43 KB
一键复制 编辑 原始数据 按行查看 历史
HePing 提交于 2024-01-22 16:32 . feat 优化类型逻辑
// 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"
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hepingmogul/ifetch.git
git@gitee.com:hepingmogul/ifetch.git
hepingmogul
ifetch
ifetch
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385