Skip to content

getOrElse

getOrElse<E, A, B>(defaultValue): (data) => Task<A | B>

Defined in: Core/TaskValidation.ts:139

Returns the success value or a default value if the TaskValidation is invalid. The default can be a different type, widening the result to Task<A | B>.

E

A

B

() => B

(data): Task<A | B>

TaskValidation<E, A>

Task<A | B>