Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import type { WaitUntil } from '../../after/builtin-request-context';
|
|
import type { NextRequest } from './request';
|
|
declare const responseSymbol: unique symbol;
|
|
declare const passThroughSymbol: unique symbol;
|
|
declare const waitUntilSymbol: unique symbol;
|
|
declare class FetchEvent {
|
|
readonly [waitUntilSymbol]: {
|
|
kind: 'internal';
|
|
promises: Promise<any>[];
|
|
} | {
|
|
kind: 'external';
|
|
function: WaitUntil;
|
|
};
|
|
[responseSymbol]?: Promise<Response>;
|
|
[passThroughSymbol]: boolean;
|
|
constructor(_request: Request, waitUntil?: WaitUntil);
|
|
respondWith(response: Response | Promise<Response>): void;
|
|
passThroughOnException(): void;
|
|
waitUntil(promise: Promise<any>): void;
|
|
}
|
|
export declare function getWaitUntilPromiseFromEvent(event: FetchEvent): Promise<void> | undefined;
|
|
export declare class NextFetchEvent extends FetchEvent {
|
|
sourcePage: string;
|
|
constructor(params: {
|
|
request: NextRequest;
|
|
page: string;
|
|
context: {
|
|
waitUntil: WaitUntil;
|
|
} | undefined;
|
|
});
|
|
/**
|
|
* @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 {};
|