2016-06-08 61 views
1

我將在我的ASP.net MVC5應用程序(不是Asp.net核心應用程序)上將我的*.js文件轉換爲*.ts。我正在使用VS 2015.I已將TypeScript定義文件下載到Scripts\typings\文件夾中。現在,當我編譯該項目時,它會在*.d.ts文件中提供100多個錯誤。可以告訴我如何擺脫這些錯誤嗎?TypeScript定義文件上的編譯錯誤

錯誤是這樣的:

enter image description here

回答

0

我已經加入tsconfig.jasonScripts文件夾,現在沒有任何錯誤:)

tsconfig.jason

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