@casual-simulation/aux-runtime
Version:
Runtime for AUX projects
23 lines • 722 B
TypeScript
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