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

    Function all

    • Combines multiple guards into a conjunctive guard.

      Creates a guard that passes only when all component guards pass. Guards are evaluated in order until one fails, returning its error message. Supports both direct guards and guard factories for deferred evaluation.

      Type Parameters

      • G extends readonly Guarding<unknown>[]

        The guards tuple type

      Parameters

      • sources: G

        The guards or guard factories to combine

      Returns Guard<Intersection<Guarded<G[number]>>>

      A guard returning empty string when all guards pass, or the first error message on failure