ui-framework-jps
Version:
A simple UI framework for state management and UI components
16 lines (15 loc) • 509 B
TypeScript
import { StateContextListener } from "./StateContextListener";
export declare type StateManagerContext = {
contextObjectId: string;
contextObjectStateAttribute: string;
contextObjectStateAttributeIsArray: boolean;
};
export interface StateContextSupplier {
addListener(listener: StateContextListener): void;
setContext(context: any): void;
getContext(): any | null;
clearContext(): void;
getContextForApi(): any;
getStateFromContext(): any[];
getStateName(): string;
}