Skip to content

Intellisense for string literals #11331

Closed
@normalser

Description

@normalser

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions