orElse()
orElse<
E1,A,E2>(onLeft): (ma) =>TaskEither<E2,A>
Recovers from a Left by applying a function.
Type Parametersβ
E1: E1β
The original error type.
A: Aβ
The success type.
E2: E2β
The new error type.
Parametersβ
onLeft: (e) => TaskEither<E2, A>β
Handler for Left case.
Returnsβ
A function that transforms the TaskEither.
Sinceβ
2.0.0