onrails
    Preparing search index...
    • Accumulate independent validation failures into a single combined error via combineErrors. Returns Ok<T[]> only when every input is Ok; otherwise returns Err<E> where E is the fold of all failures.

      Unlike combine, this does not short-circuit on first failure — use for independent checks where you want to report all problems at once.

      Type Parameters

      • T
      • E

      Parameters

      • results: readonly Result<T, E>[]
      • combineErrors: (left: E, right: E) => E

      Returns Result<T[], E>

      validateAll(
      [validateName(input), validateAge(input), validateEmail(input)],
      (left, right) => [...left, ...right],
      );
      // Result<string[], FieldError[]>