Syntax error in emitted declaration's generic arguments #42079
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
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
🔎 Search Terms
syntax error declaration emit generics "Cannot find name" ts2304
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
Important: The playground itself has a rendering bug in the display of the declaration. It still looks invalid. But it's invalid in another way in the truthful output. I paste the truthful output below.
💻 Code
🙁 Actual behavior
Emitted declaration has syntax error.
Cannot find name 'T'. (ts2304)
🙂 Expected behavior
A valid declaration.
The text was updated successfully, but these errors were encountered: