@workers-community/workers-types 4.20251219.0 → 4.20251221.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.
- package/index.d.ts +2 -0
- package/index.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -604,8 +604,10 @@ type DurableObjectLocationHint =
|
|
|
604
604
|
| "oc"
|
|
605
605
|
| "afr"
|
|
606
606
|
| "me";
|
|
607
|
+
type DurableObjectRoutingMode = "primary-only";
|
|
607
608
|
interface DurableObjectNamespaceGetDurableObjectOptions {
|
|
608
609
|
locationHint?: DurableObjectLocationHint;
|
|
610
|
+
routingMode?: DurableObjectRoutingMode;
|
|
609
611
|
}
|
|
610
612
|
interface DurableObjectClass<
|
|
611
613
|
_T extends Rpc.DurableObjectBranded | undefined = undefined,
|
package/index.ts
CHANGED
|
@@ -609,8 +609,10 @@ export type DurableObjectLocationHint =
|
|
|
609
609
|
| "oc"
|
|
610
610
|
| "afr"
|
|
611
611
|
| "me";
|
|
612
|
+
export type DurableObjectRoutingMode = "primary-only";
|
|
612
613
|
export interface DurableObjectNamespaceGetDurableObjectOptions {
|
|
613
614
|
locationHint?: DurableObjectLocationHint;
|
|
615
|
+
routingMode?: DurableObjectRoutingMode;
|
|
614
616
|
}
|
|
615
617
|
export interface DurableObjectClass<
|
|
616
618
|
_T extends Rpc.DurableObjectBranded | undefined = undefined,
|