@metreeca/type - v0.1.1
    Preparing search index...

    Function any

    • Creates a disjunctive guard from named guards.

      Creates a guard that passes when any component guard passes.

      Type Parameters

      • G extends Record<string, Guarding<unknown>>

        The guards record type

      Parameters

      • sources: G

        Record mapping names to guards or guard factories

      Returns Guard<Guarded<G[keyof G]>>

      A guard returning empty string when any guard passes