Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete in object mapping pattern #181

Open
Ilanaya opened this issue Oct 30, 2023 · 0 comments
Open

Autocomplete in object mapping pattern #181

Ilanaya opened this issue Oct 30, 2023 · 0 comments
Assignees

Comments

@Ilanaya
Copy link
Collaborator

Ilanaya commented Oct 30, 2023

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 Ilanaya self-assigned this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant