-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Bug Report
π Search Terms
π Version & Regression Information
searched a related issue: #30058
β― Playground Link
Playground link with relevant code
π» Code
type ZZZ = {
bar?: number,
foo: string
}
function test<T extends ZZZ>(c: T) {
}
function testArr<T extends ZZZ[]>(c: T) {
}
// case 1:
test({
// foo got intellisense
// bar got intellisense
})
// case 2:
test({
foo: '333',
// bar got intellisense
})
// case 3:
testArr([
{
foo: '111',
// bar got no intellisense
},
])
// case 4:
testArr([
{
// foo got intellisense
// bar got intellisense
}
]);π Actual behavior
case 3 missing the IntelliSense for option property bar
π Expected behavior
show completion for property bar
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript