-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Effort: DifficultGood luck.Good luck.Help WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
I'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user.
TypeScript Version:
1.8
Code
type T1 = {};
type T2 = {test: number};
type J = T1 & T2;
Expected behavior:
var x: J;
typeof x; // {test: number}
Actual behavior:
var x: J;
typeof x; // {} & {test: number}
JabX, DmitriyMenshayev and brunnerh
Metadata
Metadata
Assignees
Labels
Effort: DifficultGood luck.Good luck.Help WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript