Combines multiple Result or ResultAsync values into a single result. If all inputs are Success, returns a Success with combined values. If any input is a Failure, returns a Failure with an array of all errors.
The input type (object or array of Results).
combine<
X
>(x
):ResultFor
<X
[keyofX
], { [K in string | number | symbol]: InferSuccess<X[K]> },InferFailure
<X
[keyofX
]>[]>
Defined in: functions/combine.ts:63
X
extends Record
<string
, ResultMaybeAsync
<any
, any
>>
X
ResultFor
<X
[keyof X
], { [K in string | number | symbol]: InferSuccess<X[K]> }, InferFailure
<X
[keyof X
]>[]>
combine<
X
>(x
):ResultFor
<X
[number
], { [K in string | number | symbol]: InferSuccess<X[K<K>]> },InferFailure
<X
[number
]>[]>
Defined in: functions/combine.ts:64
X
extends ResultMaybeAsync
<any
, any
>[]
X
ResultFor
<X
[number
], { [K in string | number | symbol]: InferSuccess<X[K<K>]> }, InferFailure
<X
[number
]>[]>