Package: effect
Module: Layer
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>; }
Since v2.0.0