/** * Returns a layer with its error channel mapped using the specified function. * * @tsplus static effect/core/io/Layer.Aspects mapError * @tsplus pipeable effect/core/io/Layer mapError */ export function mapError(f: (e: E) => E1) { return (self: Layer): Layer => self.catchAll((e) => Layer.fail(f(e))) }