import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Effectfully transforms the chunks emitted by this stream. * * @tsplus static effect/core/stream/Stream.Aspects mapChunksEffect * @tsplus pipeable effect/core/stream/Stream mapChunksEffect */ export function mapChunksEffect( f: (chunk: Chunk) => Effect> ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.mapOutEffect(f)) } }