要美化的类型
type ComplexType = { name: string } & { age: number } & { address: string }
// display as -> { name: string } & { age: number } & { address: string }
// use `Prettify`
type PrettyType = Prettify<{ name: string } & { age: number } & { address: string }>
// display as -> { name: string; age: number; address: string }
Prettifies the type of an object
Make complex intersection types display as more readable flattened structures in the IDE
美化对象的类型
使复杂的交叉类型在IDE中显示为更易读的扁平结构