recoverUnless
recoverUnless<
E,A,B>(isBlocked,fallback): (data) =>Validation<E,A|B>
Defined in: Core/Validation.ts:278
Recovers from a Failed state unless isBlocked returns true for any of the accumulated errors.
The fallback can produce a different success type, widening the result to Validation<E, A | B>.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”isBlocked
Section titled “isBlocked”(e) => boolean
fallback
Section titled “fallback”() => Validation<E, B>
Returns
Section titled “Returns”(data) => Validation<E, A | B>