An event sent by the timer module.
Force-cast the event as specified type.
Can be used to identify the type of the event in an automation:
async handleEvent(event: AutomationEvent) { try { const timerEvent = event.handleAs(TimerEvent); } catch (e) { // ... } }
Throws an error if the cast failed.
An AutomationEvent subclass to cast this event to.
An event casted to a type specified in eventClass argument.
eventClass
Generated using TypeDoc
An event sent by the timer module.