• Concurrently evaluate the Validation or AsyncValidationLike in an array or a tuple literal and collect the successes in an equivalent structure.

    Type Parameters

    Parameters

    • elems: TElems

    Returns AsyncValidation<ErrT<{
        [K in keyof TElems]: Awaited<TElems[K]>
    }[number]>, {
        [K in keyof TElems]: OkT<Awaited<TElems[K]>>
    }>

    Remarks

    This function turns an array or a tuple literal of Validation or AsyncValidationLike "inside out". For example:

    • AsyncValidation<E, T>[] becomes AsyncValidation<E, T[]>
    • [AsyncValidation<E, T1>, AsyncValidation<E, T2>] becomes AsyncValidation<E, [T1, T2]>
  • Concurrently evaluate the Validation or AsyncValidationLike in an iterable and collect the successes in an array.

    Type Parameters

    Parameters

    Returns AsyncValidation<E, T[]>

    Remarks

    This function turns an iterable of Validation or AsyncValidationLike "inside out". For example, Iterable<AsyncValidation<E, T>> becomes AsyncValidation<E, T[]>.

Generated using TypeDoc