add warning and danger transitions as timer life cycle events (#1071)

* setup detection of TImerPhase changes

* add integration event for transition to warning

* add integration event for transition to danger

---------

Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
2024-06-15 02:54:29 -05:00
committed by GitHub
parent 1044dfac01
commit 70e8fbf327
5 changed files with 39 additions and 1 deletions
@@ -6,6 +6,8 @@ export enum TimerLifeCycle {
onClock = 'onClock',
onUpdate = 'onUpdate',
onFinish = 'onFinish',
onWarning = 'onWarning',
onDanger = 'onDanger',
}
export type TimerLifeCycleKey = keyof typeof TimerLifeCycle;