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