Skip to content

fromNullable

fromNullable<E>(onNull): <A>(value) => TaskResult<E, A>

Defined in: Core/TaskResult.ts:33

Creates a TaskResult from a nullable value. Returns Ok if the value is not null or undefined, err from onNull otherwise.

E

() => E

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