recover
recover<
E,A,B>(f): (outcome) =>Outcome<E,A|B>
Defined in: Core/Op.ts:667
Provides a fallback Outcome when the result is Err. Ok and Nil pass through.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”(e) => Outcome<E, B>
Returns
Section titled “Returns”(
outcome):Outcome<E,A|B>
Parameters
Section titled “Parameters”outcome
Section titled “outcome”Outcome<E, A>
Returns
Section titled “Returns”Outcome<E, A | B>