π Search Terms
generic, function, class, call, apply, construct, "type parameter", "type argument", completion, suggestion, autocomplete, intellisense
β
Viability Checklist
β Suggestion
#43526 implemented completions within type arguments of generic types. It would be nice to extend that behavior to the expression level, suggesting completions within type arguments of generic function calls, new expressions, etc.
π Motivating Example
In this code, foo is suggested:
type A<T extends { foo: unknown }> = T
type _ = A<{/* trigger completions here */}>
(Playground)
In this code it's not:
function f<T extends { foo: unknown }>() {}
f<{/* trigger completions here */}>()
(Playground)
Related Issues
π Search Terms
generic, function, class, call, apply, construct, "type parameter", "type argument", completion, suggestion, autocomplete, intellisense
β Viability Checklist
β Suggestion
#43526 implemented completions within type arguments of generic types. It would be nice to extend that behavior to the expression level, suggesting completions within type arguments of generic function calls,
newexpressions, etc.π Motivating Example
In this code,
foois suggested:(Playground)
In this code it's not:
(Playground)
Related Issues
tsserverfor property values in generic type argumentsΒ #56299 is about completions of property values within type arguments, which Completion list for type literals in type argumentsΒ #43526 did not implement (it only handled property names).