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

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

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