我下载了一个包含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"
}
}