Skip to content

Commit

Permalink
fix: 去除verbatimModuleSyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
missannil committed Dec 22, 2023
1 parent 486cf8d commit 8687d3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
// "noUnusedParameters": false, // 报告函数中未使用参数的错误
// "suppressImplicitAnyIndexErrors": true, // 为true关闭隐式索引错误,但很激进,建议使用@ts-ignore
"isolatedModules": true, // 模块化(.ts文件必须有导入或导出) 默认false
"verbatimModuleSyntax": true, // 强制导入类型前缀type检测,在vscode中设置"typescript.preferences.preferTypeOnlyAutoImports":true
"preserveValueImports": true, // 引入类型加type
"ignoreDeprecations": "5.0",
// "verbatimModuleSyntax": true, // 强制导入类型前缀type检测,在vscode中设置"typescript.preferences.preferTypeOnlyAutoImports":true
// 默认加载所有@types下的包 types指定具体的包,其他拒绝。包含上级目录
"types": ["hry-types", "mobx", "jest", "miniprogram-api-typings"]
},
Expand Down

0 comments on commit 8687d3d

Please sign in to comment.