修复 TypeScript tsconfig 错误

报错内容:

Flag 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error.
Use 'verbatimModuleSyntax' instead.ts

可以通过在项目中添加以下命令来隐藏此警告:tsconfig.json

{
  "compilerOptions": {
    "ignoreDeprecations": "5.0",
    ....
  }
}

你可能感兴趣的:(typescript,前端,javascript)