• Concurrently evaluate the Validation or AsyncValidationLike in a string-keyed record or object literal and collect the successes in an equivalent structure.

    Type Parameters

    Parameters

    • props: TProps

    Returns AsyncValidation<ErrT<{
        [K in keyof TProps]: Awaited<TProps[K]>
    }[keyof TProps]>, {
        [K in keyof TProps]: OkT<Awaited<TProps[K]>>
    }>

    Remarks

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

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

Generated using TypeDoc