mapTry
Callable
Type parameters
- U
The transformed type.
- T: unknown
The input type.
Parameters
x: T
The
Try
to transform.fn: (e: Success<T>) => U
The success transform.
Returns AsTry<U>
- U
The transformed type.
The input type.
The Try
to transform.
The success transform.
Map the value of the
Try
when it is aSuccess
.Example