initial
This commit is contained in:
31
ts/interfaces/modelgrid-accessor.ts
Normal file
31
ts/interfaces/modelgrid-accessor.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user