Skip to content

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>.

E

A

B

readonly E[]

() => Validation<E, B>

(data): Validation<E, A | B>

Validation<E, A>

Validation<E, A | B>