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