Missing import in generated declaration file #49065
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
Bug Report
🔎 Search Terms
emitted generated declaration file .d.ts, cannot find name, symbol, TS2304
🕗 Version & Regression Information
Reproduces with TypeScript <=4.6 ~ 4.8.0-dev
Minimum repro: https://github.com/vilic/bug-repros/tree/typescript-generated-declaration-missing-import
🙁 Actual behavior
Emitted declaration file contains symbols not imported.
🙂 Expected behavior
Emits valid declaration file.
Might be related to the way I work around TS4023: instead of
{[uniqueSymbol]: ...}
I use{[TKey in typeof uniqueSymbol]: ...}
.The text was updated successfully, but these errors were encountered: