onrails
    Preparing search index...
    • Tuple-preserving variant of validateAll. All inputs must share the same error type E. Output Ok preserves tuple positions.

      Type Parameters

      • E
      • const R extends readonly Result<unknown, E>[]

      Parameters

      • results: R
      • combineErrors: (left: E, right: E) => E

      Returns ValidateTuple<R, E>

      validateTuple(
      [validateName(s), validateAge(s)] as const,
      (l, r) => [...l, ...r],
      );
      // Result<readonly [string, number], FieldError[]>