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.
🔎 Search Terms
🕗 Version & Regression Information
I am unable to find a version of TypeScript where this was not a problem.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
TypeScript generated this function, which is an invalid function declaration:
🙂 Expected behavior
The text was updated successfully, but these errors were encountered: