UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

16 lines 685 B
import type { UnderlyingDefaultSource } from 'node:stream/web'; import type { Forkable } from './Forkable.js'; import { ForkableSink } from './ForkableSink.js'; /** * 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; } //# sourceMappingURL=BaseForkableStream.d.ts.map