utilium
    Preparing search index...

    Type Alias LastOfUnion<T>

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

    Gets the last element of a union

    Type Parameters

    • T