Files
modelgrid/ts/interfaces/modelgrid-accessor.ts

32 lines
780 B
TypeScript
Raw Permalink Normal View History

2026-01-30 03:16:57 +00:00
/**
* 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>;
}