-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
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:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this