Skip to content

fromMaybe

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

Defined in: Core/TaskResult.ts:40

Creates a TaskResult from a Maybe. Some becomes Ok, None becomes err from onNone.

E

() => E

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