Function all

  • Evaluate the Ior in an array or a tuple literal and collect the right-hand values in an equivalent structure.

    Type Parameters

    Parameters

    • iors: TIors

    Returns Ior<Ior.LeftT<TIors[number]>, {
        -readonly [K in keyof TIors]: Ior.RightT<TIors[K]>
    }>

    Remarks

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

    • Ior<E, T>[] becomes Ior<E, T[]>
    • [Ior<E, T1>, Ior<E, T2>] becomes Ior<E, [T1, T2]>
  • Evaluate the Ior in an iterable and collect the right-hand values in an array.

    Type Parameters

    Parameters

    • iors: Iterable<Ior<A, B>>

    Returns Ior<A, B[]>

    Remarks

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

Generated using TypeDoc