我下載了一個包含Angular2-final的示例.NET MVC應用程序。該項目在根目錄中有一個typings.json,在ng2應用目錄中有一個tsconfig.json。這兩個文件之間有什麼關係?這是否代表在VS中配置TypeScript的最新和最好的方法?需要typings.json還是可以將tsconfig.json配置爲覆蓋typings.json中的功能?這裏的tsconfig.json:tsconfig.json和typings.json之間的關係?
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"noEmitOnError": true,
"noImplicitAny": false,
"outDir": "../Scripts/",
"removeComments": false,
"sourceMap": true,
"target": "es5",
"moduleResolution": "node"
},
"exclude": [
"node_modules",
"typings/index",
"typings/index.d.ts"
]
}
這裏的typings.json:
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"node": "registry:dt/node#6.0.0+20160909174046"
}
}