@johngw/stream
Version:
Reactive programming tools using the WHATWG Streams API.
15 lines (14 loc) • 600 B
TypeScript
import { Forkable } from '@johngw/stream/sinks/Forkable';
import { ForkableSink } from '@johngw/stream/sinks/ForkableSink';
/**
* Abstract logic for Forkable streams.
*
* @group Sinks
*/
export declare abstract class BaseForkableStream<T, Sink extends ForkableSink<T> = ForkableSink<T>> extends WritableStream<T> implements Forkable<T> {
#private;
constructor(sink: Sink, queuingStrategy?: QueuingStrategy<T>);
get finished(): boolean;
fork(underlyingSource?: UnderlyingDefaultSource<T>, queuingStrategy?: QueuingStrategy<T>): ReadableStream<T>;
protected get sink(): Sink;
}