Function allProps

  • Evaluate the Ior in a string-keyed record or object literal and collect the right-hand values in an equivalent structure.

    Type Parameters

    Parameters

    • props: TProps

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

    Remarks

    This function turns a string-keyed record or object literal of Ior "inside out". For example:

    • Record<string, Ior<E, T>> becomes Ior<E, Record<string, T>>
    • { x: Ior<E, T1>, y: Ior<E, T2> } becomes Ior<E, { x: T1, y: T2 }>

Generated using TypeDoc