effect-io-ai

Package: effect
Module: Micro

Micro.mapError

Transform any expected errors of the given Micro effect.

Signature

declare const mapError: { <E, E2>(f: (e: E) => E2): <A, R>(self: Micro<A, E, R>) => Micro<A, E2, R>; <A, E, R, E2>(self: Micro<A, E, R>, f: (e: E) => E2): Micro<A, E2, R>; }

Source

Since v3.4.0