isguard-ts
    Preparing search index...

    Type Alias UnionTypeGuard<T>

    UnionTypeGuard: TypeGuard<T[number]> & { guards: TypeGuardTemplate<T> }

    A TypeGuard for union types (A | B | C).

    Returned by isUnion and TypeGuard.or.

    Type Parameters

    • T extends readonly unknown[]

      Array of types in the union

    Type Declaration