Skip to content
Commit Detail

Commit d0e1bd5

Author
Joe Lee <jlee@cloudflare.com> 2024-12-09 10:31:02 -0800
Parents
93a6037
Tree
8e3ef95
worker-types: Declare optional AlarmInvocationInfo parameter to Durable Object alarm() method

The runtime passes in this parameter when invoking alarm(); the `retryCount`
property gives a count of the number of previous times the runtime has tried to
run this specific alarm event.

The runtime has been passing this parameter to alarm() calls since it was
originally introduced earlier in the year, in PR#1673, but the parameter
declaration has not yet been added to the worker-types TypeScript declarations.
This commit just updates the TypeScript declarations to include this parameter.

Files changed