• Concurrently evaluate Either or AsyncEitherLike in a string-keyed record or object literal and collect the Right values in an equivalent structure.

    Type Parameters

    Parameters

    • props: TProps

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

    Remarks

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

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

Generated using TypeDoc