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

    Type Alias LastOfUnion<T>

    LastOfUnion: UnionToIntersection<T extends any ? () => T : never> extends () => infer R
        ? R
        : never

    Returns the last element of a union type.

    返回联合类型的最后一个元素。

    Type Parameters

    • T