UNPKG

@casual-simulation/aux-runtime

Version:
23 lines 722 B
import type { CurrentVersion, VersionVector } from '@casual-simulation/aux-common'; /** * Defines an interface that represents the state version of a aux runtime. */ export interface RuntimeStateVersion { /** * A map of local site IDs. */ localSites: { [id: string]: boolean; }; /** * The current version vector. */ vector: VersionVector; } /** * Updates the current runtime state version with the given new version and returns the result. * @param newVersion * @param currentVersion */ export declare function updateRuntimeVersion(newVersion: CurrentVersion, currentVersion: RuntimeStateVersion): RuntimeStateVersion; //# sourceMappingURL=RuntimeStateVersion.d.ts.map