Angularjs TypeScript定义文件上的编译错误
我要在我的ASP.net MVC5应用程序(不是ASP.net核心应用程序)上将我的Angularjs TypeScript定义文件上的编译错误,angularjs,typescript,visual-studio-2015,asp.net-mvc-5,Angularjs,Typescript,Visual Studio 2015,Asp.net Mvc 5,我要在我的ASP.net MVC5应用程序(不是ASP.net核心应用程序)上将我的*.js文件转换为*.ts。我正在使用VS 2015。我已经将TypeScript定义文件下载到Scripts\typings\文件夹中。现在,当我编译项目时,它在*.d.ts文件上给出了100多个错误。你能告诉我如何消除这些错误吗 错误如下: 我已将tsconfig.jason添加到Scripts文件夹中,现在没有错误:) tsconfig.jason { "compilerOptions": {
*.js
文件转换为*.ts
。我正在使用VS 2015。我已经将TypeScript定义文件下载到Scripts\typings\
文件夹中。现在,当我编译项目时,它在*.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"
]
}
我已将
tsconfig.jason
添加到Scripts
文件夹,现在没有错误:)
tsconfig.jason
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5"
},
"exclude": [
"node_modules",
"typings/angularjs",
"typings/jquery"
]
}