feat: create branded types to determine different handling of time

This commit is contained in:
Carlos Valente
2026-02-16 06:51:43 +01:00
committed by Carlos Valente
parent 168d7103b1
commit e8f159d894
13 changed files with 315 additions and 41 deletions
@@ -1,9 +1,9 @@
import { TimerPhase, Playback, OffsetMode } from 'ontime-types';
import { TimerPhase, Playback, OffsetMode, type TimeOfDay } from 'ontime-types';
import { deepmerge } from 'ontime-utils';
import type { RuntimeState } from '../runtimeState.js';
const baseState: RuntimeState = {
clock: 0,
clock: 0 as TimeOfDay,
eventNow: null,
eventNext: null,
eventFlag: null,