effect-io-ai

Package: effect
Module: Stream

Stream.orElseIfEmptyChunk

Produces the specified chunk if this stream is empty.

Signature

declare const orElseIfEmptyChunk: { <A2>(chunk: LazyArg<Chunk.Chunk<A2>>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E, R>; <A, E, R, A2>(self: Stream<A, E, R>, chunk: LazyArg<Chunk.Chunk<A2>>): Stream<A | A2, E, R>; }

Source

Since v2.0.0