Skip to content

Use the canonical AlarmInvocationInfo type#210

Merged
mattjohnsonpint merged 1 commit into
mainfrom
mjp/alarm-type
May 13, 2026
Merged

Use the canonical AlarmInvocationInfo type#210
mattjohnsonpint merged 1 commit into
mainfrom
mjp/alarm-type

Conversation

@mattjohnsonpint
Copy link
Copy Markdown
Contributor

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.

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.
@mattjohnsonpint mattjohnsonpint requested a review from a team as a code owner May 13, 2026 19:47
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/containers@210

commit: a3fe15b

@ask-bonk
Copy link
Copy Markdown

ask-bonk Bot commented May 13, 2026

Types are configured globally via tsconfig. The change is correct: AlarmInvocationInfo is the canonical shape { isRetry: boolean; retryCount: number }, the changeset is included, and the change is structural-only (no behavior change to the alarm handler).

LGTM

github run

@mattjohnsonpint mattjohnsonpint merged commit bf83944 into main May 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants