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}