Skip to content

recover

recover<E, A, B>(fallback): (data) => TaskValidation<E, A | B>

Defined in: Core/TaskValidation.ts:155

Recovers from an Invalid state by providing a fallback TaskValidation. The fallback receives the accumulated error list so callers can inspect which errors occurred. The fallback can produce a different success type, widening the result to TaskValidation<E, A | B>.

E

A

B

(errors) => TaskValidation<E, B>

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

TaskValidation<E, A>

TaskValidation<E, A | B>