Type alias Expand<T>

Expand<T>: T extends infer O
    ? {
        [K in keyof O]: O[K]
    }
    : never

展开一些未计算的类型,深度展开使用 ExpandDeep

Type Parameters

  • T

Example

type t1 = {a: number} & {b: string}
Expand<t1> // {a: number, b: string}

Generated using TypeDoc