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

    Type Alias UnionToIntersection<Union>

    UnionToIntersection: (
        Union extends unknown ? (distributedUnion: Union) => void : never
    ) extends (mergedIntersection: infer Intersection) => void
        ? Intersection & Union
        : never

    Convert a union type to an intersection type using distributive conditional types.

    使用分配条件类型将联合类型转换为交叉类型。

    Type Parameters

    • Union

      要转换的联合类型