Effort: DifficultHelp WantedSuggestion
倉庫指標
- Star
- (48,455 star)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 PR)
描述
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}