Files
modelgrid/ts/interfaces/modelgrid-accessor.ts
Juergen Kunz daaf6559e3
Some checks failed
CI / Type Check & Lint (push) Failing after 5s
CI / Build Test (Current Platform) (push) Failing after 5s
CI / Build All Platforms (push) Successful in 49s
initial
2026-01-30 03:16:57 +00:00

32 lines
780 B
TypeScript

/**
* ModelGrid Accessor Interface
*
* Interface to break circular dependencies between ModelGrid and its submodules.
*/
import type { IUpdateStatus } from './config.ts';
/**
* Interface for accessing ModelGrid instance from submodules
* This breaks the circular dependency between ModelGrid and its managers
*/
export interface IModelGridAccessor {
/**
* Get the current version of ModelGrid
* @returns The current version string
*/
getVersion(): string;
/**
* Get the update status
* @returns Object with current version, latest version, and update availability
*/
getUpdateStatus(): IUpdateStatus;
/**
* Check for updates
* @returns Promise resolving to true if an update is available
*/
checkForUpdates(): Promise<boolean>;
}