import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" /** * Transforms the errors emitted by this sink using `f`. * * @tsplus static effect/core/stream/Sink.Aspects mapError * @tsplus pipeable effect/core/stream/Sink mapError */ export function mapError(f: (z: E) => E2) { return (self: Sink): Sink => { concreteSink(self) return new SinkInternal(self.channel.mapError(f)) } }