fold()
constfold: <E,B,A>(onLeft,onRight) => (ma) => () =>Promise<B> =match
Alias for match.
Pattern matches on a TaskEither.
Type Parametersβ
E: Eβ
The error type.
B: Bβ
The return type.
A: Aβ
The success type.
Parametersβ
onLeft: (e) => Bβ
Handler for Left case.
onRight: (a) => Bβ
Handler for Right case.
Returnsβ
A function that matches the TaskEither.
Returns: Promise<B>β
Sinceβ
2.0.0