Skip to content

Autocomplete in object mapping pattern #181

@Ilanaya

Description

@Ilanaya
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions