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.
Type Parameters
Section titled “Type Parameters”E
Parameters
Section titled “Parameters”onNull
Section titled “onNull”() => E
Returns
Section titled “Returns”<A>(value) => TaskResult<E, A>