effect-io-ai

Package: effect
Module: Layer

Layer.mapError

Returns a layer with its error channel mapped using the specified function.

Signature

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

Source

Since v2.0.0