Skip to content

String type autocomplete doesn't work with union #25839

Description

@cevek

TypeScript Version: 3.1.0-dev.20180717

Search Terms:

Code

type A = 'A' | 'B';
type B<T extends A> = {};
type C = B<'A'> // works fine
// but if you want specify second item by using union autocomplete stops working
type C = B<'A' | 'B'>

// helpful usage
var x: Pick<A, 'A' | 'B'>

Expected behavior:

Actual behavior:

Playground Link:

Related Issues:

Activity

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 TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions