Skip to content

mapError

mapError<E, F, A>(f): (outcome) => Outcome<F, A>

Defined in: Core/Op.ts:626

Transforms the error value. Ok and Nil pass through unchanged.

E

F

A

(e) => F

(outcome): Outcome<F, A>

Outcome<E, A>

Outcome<F, A>

pipe(outcome, Op.mapError(e => e.message));