-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
Code to test
Simplified from got
typings.
interface T {
<T>(input: { type: 'text' })
<T>(input: { type: 'json' })
<T>(input: { type: 'buffer' })
}
declare const func: T
func({ type: /**/ })
No all literal or in-string completions, but okay if remove <T>
from each overload.
π Actual behavior
Completions in func({ type: '|' })
(text) missing completions from func2('|')
(text, json, buffer)
π Expected behavior
Completions for func({ type: '|' })
are the same as for func2('|')
I'm not sure probably its related to #51047 (or duplicate)
Metadata
Metadata
Assignees
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript