Can anyone explain why TypeScript isn't providing autofill suggestions for "foo" or "bar" when typing elements into an empty array in the code snippet below?
const map: Map<string, ('foo' | 'bar')[]> = new Map([
['hello', []],
['world', []],
]);
Although it correctly shows an error if something other than "foo" or "bar" is entered into the array, there are no suggestions. Is this potentially a tsconfig issue or am I structuring this Map incorrectly?