Type Alias IterableReadableStreamInterface<T>
IterableReadableStreamInterface<T>: { [asyncIterator]: ((options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<T>) & (() => AsyncIterator<T, any, undefined>); cancel: ((reason?: any) => Promise<void>); getReader: { (options: { mode: "byob"; }): ReadableStreamBYOBReader; (): ReadableStreamDefaultReader<T>; (options?: ReadableStreamGetReaderOptions): ReadableStreamReader<T>; }; locked: boolean; pipeThrough: (<T>(transform: ReadableWritablePair<T, T>,
options?: StreamPipeOptions) => ReadableStream<T>); pipeTo: ((destination: WritableStream<T>,
options?: StreamPipeOptions) => Promise<void>); tee: (() => [ReadableStream<T>, ReadableStream<T>]); values: ((options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<T>); } Type declaration
[asyncIterator]: ((options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<T>) & (() => AsyncIterator<T, any, undefined>)
cancel: ((reason?: any) => Promise<void>)
- (reason?): Promise<void>
Returns Promise<void>
getReader: {
(options: {
mode: "byob";
}): ReadableStreamBYOBReader;
(): ReadableStreamDefaultReader<T>;
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<T>;
}
- (options): ReadableStreamBYOBReader
Parameters
- options: {
mode: "byob";
}
Returns ReadableStreamBYOBReader
- (): ReadableStreamDefaultReader<T>
Returns ReadableStreamDefaultReader<T>
- (options?): ReadableStreamReader<T>
Parameters
Optional
options: ReadableStreamGetReaderOptions
Returns ReadableStreamReader<T>
locked: boolean
pipeThrough: (<T>(transform: ReadableWritablePair<T, T>, options?: StreamPipeOptions) => ReadableStream<T>)
- <T>(transform, options?): ReadableStream<T>
Parameters
- transform: ReadableWritablePair<T, T>
Optional
options: StreamPipeOptions
Returns ReadableStream<T>
pipeTo: ((destination: WritableStream<T>, options?: StreamPipeOptions) => Promise<void>)
- (destination, options?): Promise<void>
Parameters
- destination: WritableStream<T>
Optional
options: StreamPipeOptions
Returns Promise<void>
tee: (() => [ReadableStream<T>, ReadableStream<T>])
- (): [ReadableStream<T>, ReadableStream<T>]
Returns [ReadableStream<T>, ReadableStream<T>]
values: ((options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<T>)
- (options?): ReadableStreamAsyncIterator<T>
Parameters
Optional
options: ReadableStreamIteratorOptions
Returns ReadableStreamAsyncIterator<T>
MDN Reference