mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
refactor: prevent race conditions on init
This commit is contained in:
committed by
Carlos Valente
parent
f65ec0da3c
commit
0dfef732bf
@@ -3,6 +3,7 @@ import { RuntimeStore } from 'ontime-types';
|
||||
import { socket } from '../adapters/WebsocketAdapter.js';
|
||||
|
||||
export type PublishFn = <T extends keyof RuntimeStore>(key: T, value: RuntimeStore[T]) => void;
|
||||
export type StoreGetter = <T extends keyof RuntimeStore>(key: T) => Partial<RuntimeStore>[T];
|
||||
|
||||
let store: Partial<RuntimeStore> = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user