Object key completions on overloaded generic function incorrectly shows keys for primitive types #53734
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Help Wanted
You can do this
Milestone
Bug Report
🔎 Search Terms
Refactored function parameter hints with generics are incorrect
🕗 Version & Regression Information
⏯ Playground Link
No generics normal: Playground link with relevant code
There are generics, the object wording prompt is incorrect: Playground link with relevant code
There are generics, swapping the overloaded function position shows normal: Playground link with relevant code
💻 Code
🙁 Actual behavior
I also don't know why the position of the string parameter refactoring function affects the type hint of the object parameter refactoring function.
🙂 Expected behavior
Does not affect type hints.
The text was updated successfully, but these errors were encountered: