Variable ReadableStream
ReadableStream: {
prototype: ReadableStream;
new (
underlyingSource: UnderlyingByteSource,
strategy?: { highWaterMark?: number },
): ReadableStream<Uint8Array>;
new <R = any>(
underlyingSource: UnderlyingDefaultSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R>;
new <R = any>(
underlyingSource?: UnderlyingSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R>;
}
prototype: ReadableStream;
new (
underlyingSource: UnderlyingByteSource,
strategy?: { highWaterMark?: number },
): ReadableStream<Uint8Array>;
new <R = any>(
underlyingSource: UnderlyingDefaultSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R>;
new <R = any>(
underlyingSource?: UnderlyingSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R>;
}
Type declaration
- new (
underlyingSource: UnderlyingByteSource,
strategy?: { highWaterMark?: number },
): ReadableStream<Uint8Array> Parameters
- underlyingSource: UnderlyingByteSource
Optional
strategy: { highWaterMark?: number }
Returns ReadableStream<Uint8Array>
- new <R = any>(
underlyingSource: UnderlyingDefaultSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R> Type Parameters
Parameters
- underlyingSource: UnderlyingDefaultSource<R>
Optional
strategy: QueuingStrategy<R>
Returns ReadableStream<R>
- new <R = any>(
underlyingSource?: UnderlyingSource<R>,
strategy?: QueuingStrategy<R>,
): ReadableStream<R> Type Parameters
Parameters
Optional
underlyingSource: UnderlyingSource<R>Optional
strategy: QueuingStrategy<R>
Returns ReadableStream<R>
- new (
prototype: ReadableStream