@workers-community/workers-types 4.20250731.0 → 4.20250801.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -7870,6 +7870,22 @@ declare namespace Rpc {
7870
7870
  declare namespace Cloudflare {
7871
7871
  interface Env {}
7872
7872
  }
7873
+ declare module "cloudflare:node" {
7874
+ export interface DefaultHandler {
7875
+ fetch?(request: Request): Response | Promise<Response>;
7876
+ tail?(events: TraceItem[]): void | Promise<void>;
7877
+ trace?(traces: TraceItem[]): void | Promise<void>;
7878
+ scheduled?(controller: ScheduledController): void | Promise<void>;
7879
+ queue?(batch: MessageBatch<unknown>): void | Promise<void>;
7880
+ test?(controller: TestController): void | Promise<void>;
7881
+ }
7882
+ export function httpServerHandler(
7883
+ options: {
7884
+ port: number;
7885
+ },
7886
+ handlers?: Omit<DefaultHandler, "fetch">,
7887
+ ): DefaultHandler;
7888
+ }
7873
7889
  declare module "cloudflare:workers" {
7874
7890
  export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
7875
7891
  export const RpcStub: {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250731.0",
10
+ "version": "4.20250801.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",