block end calculation (#1683)

This commit is contained in:
Alex Christoffer Rasmussen
2025-07-13 17:01:21 +02:00
committed by Carlos Valente
parent e811a82be2
commit e9dda817e5
15 changed files with 474 additions and 376 deletions
@@ -4,4 +4,5 @@ import type { EntryId } from '../core/OntimeEntry.js';
export type BlockState = {
id: EntryId;
startedAt: MaybeNumber;
expectedEnd: MaybeNumber;
};
@@ -1,3 +1,4 @@
import type { MaybeString } from '../../utils/utils.type.js';
import type { OntimeEvent } from '../core/OntimeEntry.js';
import type { SimpleTimerState } from './AuxTimer.type.js';
import type { BlockState } from './CurrentBlockState.type.js';
@@ -18,9 +19,9 @@ export type RuntimeStore = {
runtime: Runtime;
eventNow: OntimeEvent | null;
eventNext: OntimeEvent | null;
blockNow: BlockState | null;
blockNext: BlockState | null;
blockNext: MaybeString;
// extra timers
auxtimer1: SimpleTimerState;