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

    Type Parameters

    Parameters

    • vdns: TVdns

    Returns Validation<ErrT<TVdns[number]>, {
        -readonly [K in keyof TVdns]: OkT<TVdns[K]>
    }>

    Remarks

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

    • Validation<E, T>[] becomes Validation<E, T[]>
    • [Validation<E, T1>, Validation<E, T2>] becomes Validation<E, [T1, T2]>
  • Evaluate the Validation in an iterable and collect the successes in an array.

    Type Parameters

    Parameters

    Returns Validation<E, T[]>

    Remarks

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

Generated using TypeDoc