Skip to content

mapError

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

Defined in: Core/Op.ts:710

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

E

F

A

(e) => F

(outcome) => Outcome<F, A>

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