Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
12
node_modules/next/dist/server/web/web-on-close.d.ts
generated
vendored
Normal file
12
node_modules/next/dist/server/web/web-on-close.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/** Monitor when the consumer finishes reading the response body.
|
||||
that's as close as we can get to `res.on('close')` using web APIs.
|
||||
*/
|
||||
export declare function trackBodyConsumed(body: string | ReadableStream, onEnd: () => void): BodyInit;
|
||||
export declare function trackStreamConsumed<TChunk>(stream: ReadableStream<TChunk>, onEnd: () => void): ReadableStream<TChunk>;
|
||||
export declare class CloseController {
|
||||
private target;
|
||||
listeners: number;
|
||||
isClosed: boolean;
|
||||
onClose(callback: () => void): void;
|
||||
dispatchClose(): void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue