TypeScript Version: 2.9.x
Search Terms:
Language Service API, Autocomplete
Code
// 2.9.x - NOT WORKING autocomplete for enumKeyObject
// 2.8.x - WORKING BOTH
enum Keys {
First = 'first',
Second = 'second',
Third = 'third',
}
type EnumKeyObject = {
[Keys.First]: {
[Keys.Second]: {
[Keys.Third]: boolean;
}
}
}
type StringKeyObject = {
first: {
second: {
third: boolean;
}
}
}
const enumKeyObject: EnumKeyObject = {
first: {
second: {
third: true,
}
}
}
const stringKeyObject: StringKeyObject = {
first: {
second: {
third: true,
}
}
}
enumKeyObject // autocomplete via '.' press NOT WORKING
stringKeyObject // autocomplete via '.' press WORKING
Expected behavior:
Autocomplete for computed name properties (enumKeyObject variable).
Actual behavior:
Autocomplete for computed name properties not working like in earlier version of TypeScript (ex. 2.8.1).
Playground Link:
TypeScript 2.8 playground
TypeScript 2.9 playground
TypeScript Version: 2.9.x
Search Terms:
Language Service API, Autocomplete
Code
Expected behavior:
Autocomplete for computed name properties (
enumKeyObjectvariable).Actual behavior:
Autocomplete for computed name properties not working like in earlier version of TypeScript (ex. 2.8.1).
Playground Link:
TypeScript 2.8 playground
TypeScript 2.9 playground