typescript-vscode-plugins icon indicating copy to clipboard operation
typescript-vscode-plugins copied to clipboard

Autocomplete in object mapping pattern

Open Ilanaya opened this issue 2 years ago • 0 comments

type Pet = 'cat' | 'dog'

const currentPet: Pet = 'cat'

const food = {
  '|'
}[currentPet]

I use this pattern almost everyday and really want to see autocomplete at cursor postition, despite this code results in error in ts. I think this is possible to do.

Ilanaya avatar Oct 30 '23 12:10 Ilanaya