Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/alarm-invocation-info-type.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion src/lib/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ export class Container<Env = Cloudflare.Env> extends DurableObject<Env> {
* Executes any scheduled tasks that are due
*/

override async alarm(alarmProps?: { isRetry: boolean; retryCount: number }): Promise<void> {
override async alarm(alarmProps?: AlarmInvocationInfo): Promise<void> {
if (
alarmProps !== undefined &&
alarmProps.isRetry &&
Expand Down
Loading