match()
match<
E,B,A>(onLeft,onRight): (ma) => () =>Promise<B>
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