AsyncResult.prototype.map<U>(fn: (value: T) => U): AsyncResult<U, E>
Transforms the Ok value using a mapper function, leaving Err untouched.
AsyncResult<U, E>
A new AsyncResult with the transformed value
AsyncResult.prototype.map<U>(fn: (value: T) => U): AsyncResult<U, E>
Transforms the Ok value using a mapper function, leaving Err untouched.
AsyncResult<U, E>
A new AsyncResult with the transformed value
import { AsyncResult } from "result/mod.ts";