// ets_tracing: off import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Transforms the errors emitted by this stream using `f`. */ export function mapError_( self: C.Stream, f: (e: E) => E1 ): C.Stream { return new C.Stream(CH.mapError_(self.channel, f)) } /** * Transforms the errors emitted by this stream using `f`. * * @ets_data_first mapError_ */ export function mapError(f: (e: E) => E1) { return (self: C.Stream) => mapError_(self, f) }