Skip to content

Intellisense for string literals #11331

Closed

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
}

Activity

  1. added this to the milestone on Oct 3, 2016
  2. normalser commented on Dec 20, 2016

    @normalser
    Author

    Looks like its working in the latest

  3. modified the milestones: TypeScript 2.3, on Mar 23, 2017
  4. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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