/** * Transforms both input chunks and result of this sink using the provided * functions. * * @tsplus static effect/core/stream/Sink.Aspects dimapChunks * @tsplus pipeable effect/core/stream/Sink dimapChunks */ export function dimapChunks( f: (input: Chunk) => Chunk, g: (z: Z) => Z1 ) { return (self: Sink): Sink => self.contramapChunks(f).map(g) }