Minimal repo for reproducing issue with duplicate amd-module name declarations being emitted. See microsoft/TypeScript#25588
- npm install
- tsc -p tsconifg.json
build/index.d.ts file is generated and has the below in the first two lines
/// <amd-module name="mynamespace::SomeModule" />
/// <amd-module name="mynamespace::SomeModule" />
along with the error
an AMD module cannot have multiple name assignments
We can manually delete the duplicate line
The duplicate line shouldn't be generated in the first place