Function allPropsPar

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

    Type Parameters

    Parameters

    • props: TProps

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

    Remarks

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

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

Generated using TypeDoc