• Concurrently evaluate the Maybe or AsyncMaybeLike in a string-keyed record or object literal and collect the Just values in an equivalent structure.

    Type Parameters

    Parameters

    • props: TProps

    Returns AsyncMaybe<{
        [K in keyof TProps]: JustT<Awaited<TProps[K]>>
    }>

    Remarks

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

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

Generated using TypeDoc