@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Type Alias Prettify<T>

    Prettify: { [K in keyof T]: T[K] } & {}

    Prettifies the type of an object

    Make complex intersection types display as more readable flattened structures in the IDE

    美化对象的类型

    使复杂的交叉类型在IDE中显示为更易读的扁平结构

    Type Parameters

    • T

      要美化的类型

    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 }