liftOption()
liftOption<
A,B,E>(f,onNone): (...a) =>Either<E,B>
Lifts a function that returns an Option to return an Either.
Type Parametersβ
A: A extends readonly unknown[]β
The argument types.
B: Bβ
The return type.
E: Eβ
The error type.
Parametersβ
f: (...a) => objectβ
The function to lift.
onNone: (...a) => Eβ
Function to create error for None.
Returnsβ
A lifted function that returns an Either.
Sinceβ
2.0.0