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

    Type Alias Intersection<G>

    Intersection: Union<G> extends infer U
        ? (U extends unknown ? (x: U) => void : never) extends (
            x: infer I,
        ) => void
            ? I
            : never
        : never

    Extracts the intersection of guarded types from an array of type guards.

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

    Type Parameters

    • G extends readonly Guard[]

      The array type containing type guards

    isIntersection for validating values against all guards simultaneously