/** * Effectfully transforms both input chunks and result of this sink using the * provided functions. `f` and `g` must preserve chunking-invariance. * * @tsplus static effect/core/stream/Sink.Aspects dimapChunksEffect * @tsplus pipeable effect/core/stream/Sink dimapChunksEffect */ export function dimapChunksEffect( f: (input: Chunk) => Effect>, g: (z: Z) => Z1 ) { return (self: Sink): Sink => self.contramapChunksEffect(f).map(g) }