|
1 | 1 | /* eslint-disable */ |
2 | | -// Generated by Wrangler by running `wrangler types --env-interface CloudflareBindings` (hash: 502e2034a04451831617b45e933366c8) |
3 | | -// Runtime types generated with workerd@1.20250924.0 2025-09-26 |
| 2 | +// Generated by Wrangler by running `wrangler types --env-interface CloudflareBindings` (hash: e48c63bb4c89a59e02be6825aa1e7c60) |
| 3 | +// Runtime types generated with workerd@1.20250927.0 2025-09-26 |
4 | 4 | declare namespace Cloudflare { |
5 | 5 | interface GlobalProps { |
6 | 6 | mainModule: typeof import("./src/index"); |
7 | 7 | } |
8 | 8 | interface Env { |
| 9 | + SCRAPING_BASE_URL: "https://bulletins.nyu.edu/"; |
| 10 | + CONVEX_SITE_URL: string; |
| 11 | + CONVEX_API_KEY: string; |
| 12 | + DB: D1Database; |
| 13 | + SCRAPING_QUEUE: Queue; |
9 | 14 | } |
10 | 15 | } |
11 | 16 | interface CloudflareBindings extends Cloudflare.Env {} |
@@ -7463,6 +7468,19 @@ interface MediaError extends Error { |
7463 | 7468 | readonly message: string; |
7464 | 7469 | readonly stack?: string; |
7465 | 7470 | } |
| 7471 | +declare module 'cloudflare:node' { |
| 7472 | + interface NodeStyleServer { |
| 7473 | + listen(...args: unknown[]): this; |
| 7474 | + address(): { |
| 7475 | + port?: number | null | undefined; |
| 7476 | + }; |
| 7477 | + } |
| 7478 | + export function httpServerHandler(port: number): ExportedHandler; |
| 7479 | + export function httpServerHandler(options: { |
| 7480 | + port: number; |
| 7481 | + }): ExportedHandler; |
| 7482 | + export function httpServerHandler(server: NodeStyleServer): ExportedHandler; |
| 7483 | +} |
7466 | 7484 | type Params<P extends string = any> = Record<P, string | string[]>; |
7467 | 7485 | type EventContext<Env, P extends string, Data> = { |
7468 | 7486 | request: Request<unknown, IncomingRequestCfProperties<unknown>>; |
@@ -7720,19 +7738,6 @@ declare namespace Cloudflare { |
7720 | 7738 | & (K extends GlobalProp<"durableNamespaces", never> ? MainModule[K] extends new (...args: any[]) => infer DoInstance ? DoInstance extends Rpc.DurableObjectBranded ? DurableObjectNamespace<DoInstance> : DurableObjectNamespace<undefined> : DurableObjectNamespace<undefined> : {}); |
7721 | 7739 | }; |
7722 | 7740 | } |
7723 | | -declare module 'cloudflare:node' { |
7724 | | - export interface DefaultHandler { |
7725 | | - fetch?(request: Request): Response | Promise<Response>; |
7726 | | - tail?(events: TraceItem[]): void | Promise<void>; |
7727 | | - trace?(traces: TraceItem[]): void | Promise<void>; |
7728 | | - scheduled?(controller: ScheduledController): void | Promise<void>; |
7729 | | - queue?(batch: MessageBatch<unknown>): void | Promise<void>; |
7730 | | - test?(controller: TestController): void | Promise<void>; |
7731 | | - } |
7732 | | - export function httpServerHandler(options: { |
7733 | | - port: number; |
7734 | | - }, handlers?: Omit<DefaultHandler, 'fetch'>): DefaultHandler; |
7735 | | -} |
7736 | 7741 | declare namespace CloudflareWorkersModule { |
7737 | 7742 | export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>; |
7738 | 7743 | export const RpcStub: { |
|
0 commit comments