feat: add time type none

This commit is contained in:
Carlos Valente
2024-10-31 17:31:26 +01:00
committed by Carlos Valente
parent 7ccd41eeee
commit 0d8c186c77
7 changed files with 17 additions and 2 deletions
@@ -23,6 +23,8 @@ export function getTimerByType(freezeEnd: boolean, timerObject?: TimerTypeParams
return Math.abs(timerObject.elapsed ?? 0);
case TimerType.Clock:
return timerObject.clock;
case TimerType.None:
return null;
default: {
const exhaustiveCheck: never = timerObject.timerType;
return exhaustiveCheck;