"unique symbol" is generated to multiple .d.ts files #40786
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fix Available
A PR has been opened for this issue
Milestone
zoltan-mihalyi commentedSep 26, 2020
•
edited
TypeScript Version: 4.0.3
Search Terms:
unique symbol, declaration, .d.ts, invalid, TS4023
Code
a.ts
b.ts
tsconfig.json
{ "compilerOptions": { "declaration": true, "strict": true, "noImplicitAny": true, "rootDir": "src", "outDir": "lib" } }Expected behavior:
Typescript should either throw TS4023, or generate the following code for b.d.ts:
Actual behavior:
Typescript generates "unique symbol" to both a.d.ts and b.d.ts:
a.d.ts
b.d.ts
Project Link:
project.zip
The text was updated successfully, but these errors were encountered: