UNPKG

electron-event-flux

Version:

Redux store which synchronizes between instances in multiple process

40 lines 1.52 kB
import { Emitter } from 'event-kit'; import AppStore from './AppStore'; import IStoresDeclarer from './IStoresDeclarer'; import IExtendStoreBase, { IExtendStoreBaseConstructor } from './IExtendStoreBase'; export declare const IS_STORE = "@@__FLUX_STORE__@@"; export declare function buildStore(appStore: AppStore, storeClass: IExtendStoreBaseConstructor, args?: any[], options?: any): IExtendStoreBase; export interface StoreBaseConstructor { new (...args: any[]): StoreBase; innerStores: IStoresDeclarer; } export default class StoreBase { appStores: { [name: string]: any; }; _appStore: AppStore | undefined; options: any; parentStore: StoreBase | undefined; state: any; emitter: Emitter<{ [key: string]: any; }, {}>; inWillUpdate: boolean; willUpdateStates: any[]; _isInit: boolean; static isStore(maybeStore: any): boolean; static innerStores: IStoresDeclarer; __FLUX_STORE__: boolean; _initWrap(): void; willInit(): void; init(): void; buildStore(storeClass: IExtendStoreBaseConstructor, args: any[], options?: any): IExtendStoreBase | undefined; setState(state: any): void; onDidUpdate(callback: (state: any) => void): import("event-kit").Disposable; onWillUpdate(callback: (state: any) => void): import("event-kit").Disposable; observe(callback: (state: any) => void): import("event-kit").Disposable; dispose(): void; destroy(): void; getState(): any; } //# sourceMappingURL=StoreBase.d.ts.map