feat: init
This commit is contained in:
20
node_modules/nitropack/dist/presets/cloudflare/runtime/cloudflare-pages.d.ts
generated
vendored
Normal file
20
node_modules/nitropack/dist/presets/cloudflare/runtime/cloudflare-pages.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import "#nitro-internal-pollyfills";
|
||||
import type { Request as CFRequest, EventContext, ExecutionContext } from "@cloudflare/workers-types";
|
||||
/**
|
||||
* Reference: https://developers.cloudflare.com/workers/runtime-apis/fetch-event/#parameters
|
||||
*/
|
||||
interface CFPagesEnv {
|
||||
ASSETS: {
|
||||
fetch: (request: CFRequest) => Promise<Response>;
|
||||
};
|
||||
CF_PAGES: "1";
|
||||
CF_PAGES_BRANCH: string;
|
||||
CF_PAGES_COMMIT_SHA: string;
|
||||
CF_PAGES_URL: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
declare const _default: {
|
||||
fetch(request: CFRequest, env: CFPagesEnv, context: EventContext<CFPagesEnv, string, any>): Promise<any>;
|
||||
scheduled(event: any, env: CFPagesEnv, context: ExecutionContext): void;
|
||||
};
|
||||
export default _default;
|
||||
Reference in New Issue
Block a user