recoverUnless
recoverUnless<
E,A,B>(blockedErrors,fallback): (data) =>Validation<E,A|B>
Defined in: Core/Validation.ts:210
Recovers from an Invalid state unless the errors contain any of the blocked 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”blockedErrors
Section titled “blockedErrors”readonly E[]
fallback
Section titled “fallback”() => Validation<E, B>
Returns
Section titled “Returns”(
data):Validation<E,A|B>
Parameters
Section titled “Parameters”Validation<E, A>
Returns
Section titled “Returns”Validation<E, A | B>