recoverUnless
recoverUnless<
E,A,B>(blockedErr,fallback): (data) =>Result<E,A|B>
Defined in: Core/Result.ts:188
Recovers from an error unless it matches the blocked error.
The fallback can produce a different success type, widening the result to Result<E, A | B>.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”blockedErr
Section titled “blockedErr”E
fallback
Section titled “fallback”() => Result<E, B>
Returns
Section titled “Returns”(
data):Result<E,A|B>
Parameters
Section titled “Parameters”Result<E, A>
Returns
Section titled “Returns”Result<E, A | B>