Skip to content

getOrElse

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

Defined in: Core/TaskValidation.ts:148

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

E

A

B

() => B

(data) => Task<A | B>