augment-vir - v32.2.2
    Preparing search index...

    Type Alias UnionMember<T>

    UnionMember: IsNever<T> extends true
        ? never
        : UnionToIntersection<T extends any ? () => T : never> extends () => infer R
            ? R
            : never

    Returns a single member of the given union. Which member is returned is not guaranteed, but it is deterministic for a given union.

    Copied from the UnionMember type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • T