import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/mapError";
import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal";
/**
 * Transforms the errors emitted by this sink using `f`.
 *
 * @tsplus fluent ets/Sink mapError
 */

export function mapError_(self, f, __tsplusTrace) {
  void 0;
  return new SinkInternal(tsplus_module_1.mapError_(self.channel, f));
}
/**
 * Transforms the errors emitted by this sink using `f`.
 *
 * @tsplus static ets/Sink/Aspects mapError
 */

export const mapError = (f, __tsplusTrace) => self => mapError_(self, f, __tsplusTrace);
//# sourceMappingURL=mapError.mjs.map