I am having an issue with Typescript creating duplicate identifier errors because of the .d.ts files it generates during compilation. I have made changes to the tsconfig file in an attempt to prevent this:
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"noImplicitAny": true,
"module": "system",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"outDir":"js/",
"declaration": true
},
"exclude": [
"bower_components",
"node_modules",
"wwwroot" // this is the key line
]
}
Following a suggestion in this answer, I thought excluding certain folders would stop the creation of .d.ts files. Unfortunately, this did not solve my problem. I am using Visual Studio Code. Can someone advise me on which file or folder I should exclude instead?