Initial boiler plate project
This commit is contained in:
33
node_modules/next/dist/server/web/spec-extension/fetch-event.d.ts
generated
vendored
Normal file
33
node_modules/next/dist/server/web/spec-extension/fetch-event.d.ts
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
import type { NextRequest } from './request';
|
||||
declare const responseSymbol: unique symbol;
|
||||
declare const passThroughSymbol: unique symbol;
|
||||
export declare const waitUntilSymbol: unique symbol;
|
||||
declare class FetchEvent {
|
||||
readonly [waitUntilSymbol]: Promise<any>[];
|
||||
[responseSymbol]?: Promise<Response>;
|
||||
[passThroughSymbol]: boolean;
|
||||
constructor(_request: Request);
|
||||
respondWith(response: Response | Promise<Response>): void;
|
||||
passThroughOnException(): void;
|
||||
waitUntil(promise: Promise<any>): void;
|
||||
}
|
||||
export declare class NextFetchEvent extends FetchEvent {
|
||||
sourcePage: string;
|
||||
constructor(params: {
|
||||
request: NextRequest;
|
||||
page: string;
|
||||
});
|
||||
/**
|
||||
* @deprecated The `request` is now the first parameter and the API is now async.
|
||||
*
|
||||
* Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
||||
*/
|
||||
get request(): void;
|
||||
/**
|
||||
* @deprecated Using `respondWith` is no longer needed.
|
||||
*
|
||||
* Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
||||
*/
|
||||
respondWith(): void;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user