diff --git a/.changeset/alarm-invocation-info-type.md b/.changeset/alarm-invocation-info-type.md new file mode 100644 index 0000000..5b26b5b --- /dev/null +++ b/.changeset/alarm-invocation-info-type.md @@ -0,0 +1,5 @@ +--- +'@cloudflare/containers': patch +--- + +Use the canonical `AlarmInvocationInfo` type from `@cloudflare/workers-types` for the `alarm()` parameter instead of an inline type. This is a no-op for users (the shape is identical), but keeps the override aligned with the Durable Object base class signature. diff --git a/src/lib/container.ts b/src/lib/container.ts index c85a5d1..8c51e76 100644 --- a/src/lib/container.ts +++ b/src/lib/container.ts @@ -1920,7 +1920,7 @@ export class Container extends DurableObject { * Executes any scheduled tasks that are due */ - override async alarm(alarmProps?: { isRetry: boolean; retryCount: number }): Promise { + override async alarm(alarmProps?: AlarmInvocationInfo): Promise { if ( alarmProps !== undefined && alarmProps.isRetry &&