32 lines
780 B
TypeScript
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>;
|
||
|
|
}
|