繁体   English   中英

TypeScript定义文件上的编译错误

[英]Compilation errors on the TypeScript Definition Files

我要在我的ASP.net MVC5应用程序(不是Asp.net核心应用程序)上将我的*.js文件转换为*.ts 我正在使用VS 2015.I已将TypeScript定义文件下载到Scripts\\typings\\ typings Scripts\\typings\\ folder.Now当我编译项目时,它在*.d.ts上提供了100多个错误。你能告诉我如何摆脱这些错误?

错误是这样的:

在此输入图像描述

我已将tsconfig.jason添加到Scripts文件夹中,现在没有错误:)

tsconfig.jason

 {
  "compilerOptions": {
    "noImplicitAny": false,
    "noEmitOnError": true,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules",
    "typings/angularjs",
    "typings/jquery"
  ]
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM