@metreeca/core - v0.9.18
    Preparing search index...

    Type Alias Union<G>

    Union: G extends readonly Guard<infer T>[] ? T : never

    Extracts the guarded type from an array of type guards.

    Given an array of Guard functions, infers the union of all types they guard. Useful for deriving the result type of union validation with isUnion.

    Type Parameters

    • G extends readonly Guard[]

      The array type containing type guards

    isUnion for validating values against multiple guards