happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
22 lines • 730 B
TypeScript
/**
* Creating a ReadableStream initiates the stream and creates a Promise internally in Node.js.
* This Promise is not accessible and cannot be awaited.
*
* This class provides a way to wrap a ReadableStream and consume it when needed.
*/
export declare class ReadableStreamWrapper {
#private;
/**
* Constructor.
*
* @param read Function that returns a ReadableStream when called.
*/
constructor(read: () => ReadableStream);
/**
* Returns the ReadableStream. If the stream has already been created, it returns the existing instance.
*
* @returns ReadableStream instance
*/
get readableStream(): ReadableStream;
}
//# sourceMappingURL=ReadableStreamWrapper.d.ts.map