effect-io-ai

Package: effect
Module: Exit

Exit.mapError

Maps over the error contained in the Failure of the specified exit using the provided function.

Signature

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

Source

Since v2.0.0