UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

20 lines (18 loc) 458 B
// ets_tracing: off import * as CH from "../Channel/index.mjs"; import * as C from "./core.mjs"; /** * Transforms the errors emitted by this sink using `f`. */ export function mapError_(self, f) { 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) { return self => mapError_(self, f); } //# sourceMappingURL=mapError.mjs.map