Skip to content

Intellisense for string literals #11331

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

Closed
normalser opened this issue Oct 3, 2016 · 1 comment
Closed

Intellisense for string literals #11331

normalser opened this issue Oct 3, 2016 · 1 comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@normalser
Copy link

There is merged PR that handles some cases: #8428

but it does not handle this case:

interface Test {
    a: "A" | "B" | "C"
}

const test:Test = {
    a: "  // <- Intellisense shows: 'a' instead of A | B | C
}
@mhegazy mhegazy added the Bug A bug in TypeScript label Oct 3, 2016
@mhegazy mhegazy added this to the Future milestone Oct 3, 2016
@normalser
Copy link
Author

Looks like its working in the latest

@DanielRosenwasser DanielRosenwasser added the Fixed A PR has been merged for this issue label Mar 23, 2017
@mhegazy mhegazy modified the milestones: TypeScript 2.3, Future Mar 23, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants