We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeScript Version: 2.3 (Playground)
Code
type Bla = { item1: number }; function f<TKey extends keyof Bla>(key: TKey) {} f("|");
Expected behavior: Autocomplete suggests item1 at position |.
item1
|
Actual behavior: Autocomplete does not suggest anything:
Remark It works as expected if Bla has more than one member:
Bla
TypeScript Version: 2.3 (Playground)
Code
Expected behavior:
Autocomplete suggests
item1at position|.Actual behavior:

Autocomplete does not suggest anything:
Remark

It works as expected if
Blahas more than one member: