Ghion-Finance/.open-next/cloudflare-templates/init.d.ts
“kirukib” be1ac8e0ed -
2026-03-17 23:14:03 +03:00

17 lines
580 B
TypeScript

/**
* Initialization for the workerd runtime.
*
* The file must be imported at the top level the worker.
*/
/**
* Executes the handler with the Cloudflare context.
*/
export declare function runWithCloudflareRequestContext(request: Request, env: CloudflareEnv, ctx: ExecutionContext, handler: () => Promise<Response>): Promise<Response>;
declare global {
var __BUILD_TIMESTAMP_MS__: number;
var __NEXT_BASE_PATH__: string;
var __ASSETS_RUN_WORKER_FIRST__: boolean | string[] | undefined;
var __DEPLOYMENT_ID__: string;
var __TRAILING_SLASH__: boolean;
}