* The `ReadableStream` interface of the Streams API represents a readable stream of byte data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
| 2214 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) |
| 2215 | */ |
| 2216 | interface ReadableStream<R = any> { |
| 2217 | /** |
| 2218 | * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader. |
| 2219 | * |
| 2220 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) |
| 2221 | */ |
| 2222 | get locked(): boolean; |
| 2223 | /** |
| 2224 | * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. |
| 2225 | * |
| 2226 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) |
| 2227 | */ |
| 2228 | cancel(reason?: any): Promise<void>; |
| 2229 | /** |
| 2230 | * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. |
| 2231 | * |
| 2232 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) |
| 2233 | */ |
| 2234 | getReader(): ReadableStreamDefaultReader<R>; |
| 2235 | /** |
| 2236 | * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. |
| 2237 | * |
| 2238 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) |
| 2239 | */ |
| 2240 | getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader; |
| 2241 | /** |
| 2242 | * The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair. |
| 2243 | * |
| 2244 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) |
| 2245 | */ |
| 2246 | pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; |
| 2247 | /** |
| 2248 | * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. |
| 2249 | * |
| 2250 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) |
| 2251 | */ |
| 2252 | pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; |
| 2253 | /** |
| 2254 | * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances. |
| 2255 | * |
| 2256 | * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) |
| 2257 | */ |
| 2258 | tee(): [ |
| 2259 | ReadableStream<R>, |
| 2260 | ReadableStream<R> |
| 2261 | ]; |
| 2262 | values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; |
| 2263 | [Symbol.asyncIterator](options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; |
| 2264 | } |
| 2265 | /** |
| 2266 | * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. |
| 2267 | * |
no outgoing calls
no test coverage detected