UNPKG

simple-object-state

Version:

An experiemental object oriented state mangment lib

13 lines (12 loc) 2.28 kB
export { Store } from "./Store"; export declare const subscribe: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>, callback: import("./SimpleObjectStateStoreWrapper").ListenerCallback<State>) => void; export declare const unsubscribe: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>, callback: import("./SimpleObjectStateStoreWrapper").ListenerCallback<State>) => void; export declare const register: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(Class: import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => import("./SimpleObjectStateStoreWrapper").SimpleObjectStateStoreWrapper<any, any, any>; export declare const unregister: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(Class: import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => void; export declare const getInitialState: <StoreClass extends import("./Store").Store<State, Actions> & { InitialState: State; }, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => State | undefined; export declare const callAction: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>, action: string, ...args: any) => void; export declare const createStore: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => void; export declare const destroyStore: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => void; export declare const getState: <StoreClass extends import("./Store").Store<State, Actions>, State, Actions>(ref: string | StoreClass | import("./SimpleObjectStateStoreWrapper").ClassConstructor<StoreClass>) => State | undefined;