Add Missing Function Declaration: Does Not Correctly Declare Generic Function #49693
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Help Wanted
You can do this
Milestone
Bug Report
The "Quick Feature" allows us to generate a missing a function, but doesn't correctly declare that function when its parameters include a type parameter.
See also unexpected behavior when type narrowing in this example.
I am unable to find a version of TypeScript where this was not a problem.
Playground link with relevant code
TypeScript generated this function, which is an invalid function declaration:
The text was updated successfully, but these errors were encountered: