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".
Help Wanted
You can do this
Milestone


Bug Report
emitted generated declaration file .d.ts, cannot find name, symbol, TS2304
Reproduces with TypeScript <=4.6 ~ 4.8.0-dev
Minimum repro: https://github.com/vilic/bug-repros/tree/typescript-generated-declaration-missing-import
Emitted declaration file contains symbols not imported.
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: