Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
542 B
Text
12 lines
542 B
Text
/** 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;
|
|
}
|