@cloudflare/workers-types 5.20261021.1 → 5.20261023.1
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/experimental/index.d.ts +6 -0
- package/experimental/index.ts +3 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -705,6 +705,12 @@ interface DurableObjectRetryOptions {
|
|
|
705
705
|
maxRetries?: number;
|
|
706
706
|
timeoutMs?: number;
|
|
707
707
|
}
|
|
708
|
+
interface DurableObjectEvictionInfo {
|
|
709
|
+
readonly reason: "inactive" | "codeUpdated" | "system" | (string & {});
|
|
710
|
+
}
|
|
711
|
+
declare module "cloudflare:durable-objects" {
|
|
712
|
+
export const onEvict: unique symbol;
|
|
713
|
+
}
|
|
708
714
|
interface DurableObjectState<Props = unknown> {
|
|
709
715
|
waitUntil(promise: Promise<any>): void;
|
|
710
716
|
readonly exports: Cloudflare.Exports;
|
package/experimental/index.ts
CHANGED
|
@@ -708,6 +708,9 @@ export interface DurableObjectRetryOptions {
|
|
|
708
708
|
maxRetries?: number;
|
|
709
709
|
timeoutMs?: number;
|
|
710
710
|
}
|
|
711
|
+
export interface DurableObjectEvictionInfo {
|
|
712
|
+
readonly reason: "inactive" | "codeUpdated" | "system" | (string & {});
|
|
713
|
+
}
|
|
711
714
|
export interface DurableObjectState<Props = unknown> {
|
|
712
715
|
waitUntil(promise: Promise<any>): void;
|
|
713
716
|
readonly exports: Cloudflare.Exports;
|
package/package.json
CHANGED