@cloudflare/workers-types 4.20250701.0 → 4.20250702.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.
@@ -688,11 +688,16 @@ declare class WebSocketRequestResponsePair {
688
688
  get response(): string;
689
689
  }
690
690
  interface DurableObjectFacets {
691
- get(name: string, options: DurableObjectFacetsGetOptions): Fetcher;
691
+ get(
692
+ name: string,
693
+ getStartupOptions: () =>
694
+ | DurableObjectFacetsStartupOptions
695
+ | Promise<DurableObjectFacetsStartupOptions>,
696
+ ): Fetcher;
692
697
  abort(name: string, reason: any): void;
693
698
  delete(name: string): void;
694
699
  }
695
- interface DurableObjectFacetsGetOptions {
700
+ interface DurableObjectFacetsStartupOptions {
696
701
  $class: DurableObjectClass;
697
702
  id?: DurableObjectId | string;
698
703
  }
@@ -693,11 +693,16 @@ export declare class WebSocketRequestResponsePair {
693
693
  get response(): string;
694
694
  }
695
695
  export interface DurableObjectFacets {
696
- get(name: string, options: DurableObjectFacetsGetOptions): Fetcher;
696
+ get(
697
+ name: string,
698
+ getStartupOptions: () =>
699
+ | DurableObjectFacetsStartupOptions
700
+ | Promise<DurableObjectFacetsStartupOptions>,
701
+ ): Fetcher;
697
702
  abort(name: string, reason: any): void;
698
703
  delete(name: string): void;
699
704
  }
700
- export interface DurableObjectFacetsGetOptions {
705
+ export interface DurableObjectFacetsStartupOptions {
701
706
  $class: DurableObjectClass;
702
707
  id?: DurableObjectId | string;
703
708
  }
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250701.0"
10
+ "version": "4.20250702.0"
11
11
  }