Problem with declaration file generated from generic extended function #17840
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fixed
A PR has been merged for this issue
Milestone
I have code like so:
(This is an over simplified version of real code just to show the problem)
The generated
.d.ts
file does not compileAs you can see the extending function is compiled to a const
B_Base
and since consts can not be generic this line throws an error when using the definition file.The text was updated successfully, but these errors were encountered: