AsyncResult.prototype.mapErr<F extends BaseError>(fn: (error: E) => F): AsyncResult<T, F>
Transforms the Err value using a mapper function, leaving Ok untouched.
F extends BaseError
The type of the transformed error
AsyncResult<T, F>
A new AsyncResult with the transformed error