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