@workers-community/workers-types 4.20251118.0 → 4.20251120.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 (3) hide show
  1. package/index.d.ts +8 -0
  2. package/index.ts +8 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9631,7 +9631,15 @@ declare namespace CloudflareWorkersModule {
9631
9631
  ): Promise<unknown>;
9632
9632
  }
9633
9633
  export function waitUntil(promise: Promise<unknown>): void;
9634
+ export function withEnv(newEnv: unknown, fn: () => unknown): unknown;
9635
+ export function withExports(newExports: unknown, fn: () => unknown): unknown;
9636
+ export function withEnvAndExports(
9637
+ newEnv: unknown,
9638
+ newExports: unknown,
9639
+ fn: () => unknown,
9640
+ ): unknown;
9634
9641
  export const env: Cloudflare.Env;
9642
+ export const exports: Cloudflare.Exports;
9635
9643
  }
9636
9644
  declare module "cloudflare:workers" {
9637
9645
  export = CloudflareWorkersModule;
package/index.ts CHANGED
@@ -9606,7 +9606,15 @@ export declare namespace CloudflareWorkersModule {
9606
9606
  ): Promise<unknown>;
9607
9607
  }
9608
9608
  export function waitUntil(promise: Promise<unknown>): void;
9609
+ export function withEnv(newEnv: unknown, fn: () => unknown): unknown;
9610
+ export function withExports(newExports: unknown, fn: () => unknown): unknown;
9611
+ export function withEnvAndExports(
9612
+ newEnv: unknown,
9613
+ newExports: unknown,
9614
+ fn: () => unknown,
9615
+ ): unknown;
9609
9616
  export const env: Cloudflare.Env;
9617
+ export const exports: Cloudflare.Exports;
9610
9618
  }
9611
9619
  export interface SecretsStoreSecret {
9612
9620
  /**
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.20251118.0",
10
+ "version": "4.20251120.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",