Skip to content

fromMaybe

fromMaybe<E>(onNone): <A>(maybe) => TaskValidation<E, A>

Defined in: Core/TaskValidation.ts:61

Creates a TaskValidation from a Maybe. Some becomes Passed, None becomes Failed with the error from onNone.

E

() => E

<A>(maybe) => TaskValidation<E, A>