recoverTry
Callable
Type parameters
- U
The transformed type.
- T: unknown
The input type.
Parameters
x: T
The
Try
to transform.recover: (e: Error) => U
The failure transform.
Returns AsTry<U> | T
- U
The transformed type.
The input type.
The Try
to transform.
The failure transform.
Map the value of the
Try
when it is aFailure
.Example