import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" /** * Effectfully transforms this sink's result. * * @tsplus static effect/core/stream/Sink.Aspects mapEffect * @tsplus pipeable effect/core/stream/Sink mapEffect */ export function mapEffect( f: (z: Z) => Effect ) { return (self: Sink): Sink => { concreteSink(self) return new SinkInternal(self.channel.mapEffect(f)) } }