Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

mapErrAsyncForResult

Maps a Result<T, E> to Result<T, F> by applying a transformer function mapFn<E, F> to an contained Err(E) value, leaving an Ok(T) value untouched.

This function can be used to pass through a successful result while handling an error.

function mapErrAsyncForResult<T, E, F>(input: Result<T, E>, transformer: AsyncTransformFn<E, F>): Promise<Result<T, F>>;
§
mapErrAsyncForResult<T, E, F>(input: Result<T, E>, transformer: AsyncTransformFn<E, F>): Promise<Result<T, F>>
[src]

§Type Parameters

§Parameters

§
input: Result<T, E>
[src]
§
transformer: AsyncTransformFn<E, F>
[src]

§Return Type

§
Promise<Result<T, F>>
[src]