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

    Type Parameters

    Parameters

    • props: TVdns

    Returns Validation<ErrT<TVdns[keyof TVdns]>, {
        -readonly [K in keyof TVdns]: OkT<TVdns[K]>
    }>

    Remarks

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

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

Generated using TypeDoc