method Task.prototype.mapErr
Task.prototype.mapErr<F>(fn: (error: E) => Promisable<F>): Task<T, F>

Maps the error value. Successful values are passed through unchanged.

Type Parameters

Parameters

fn: (error: E) => Promisable<F>

Return Type

Task<T, F>

Usage

import { Task } from ".";