/** * Fails with given error in case this one fails with a typed error. * * See also `Stream.catchAll`. * * @tsplus static effect/core/stream/Stream.Aspects orElseFail * @tsplus pipeable effect/core/stream/Stream orElseFail */ export function orElseFail( e: LazyArg ) { return (self: Stream): Stream => self | Stream.failSync(e) }