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