import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Transforms the full causes of failures emitted by this stream. * * @tsplus static effect/core/stream/Stream.Aspects mapErrorCause * @tsplus pipeable effect/core/stream/Stream mapErrorCause */ export function mapErrorCause( f: (e: Cause) => Cause ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.mapErrorCause(f)) } }