Skip to content

fromNullable

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

Defined in: Core/TaskValidation.ts:54

Creates a TaskValidation from a nullable value. If the value is null or undefined, returns Failed with the error from onNull. Otherwise, returns Passed.

E

() => E

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