Skip to content

recover

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

Defined in: Core/TaskValidation.ts:184

Recovers from a Failed state by providing a fallback Task.Validation. 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 Task.Validation<E, A | B>.

E

A

B

(errors) => TaskValidation<E, B>

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