electron-event-flux
Version:
Redux store which synchronizes between instances in multiple process
48 lines • 1.91 kB
TypeScript
import { StoreBaseConstructor } from "./StoreBase";
interface StoreDeclarerOptions {
args?: [any];
storeKey?: string;
defaultFilter?: boolean;
}
declare const IS_STORE = "@@__STORE_ITEM__@@";
declare class StoreDeclarer {
Store: StoreBaseConstructor;
options: StoreDeclarerOptions | undefined;
constructor(Store: StoreBaseConstructor, options?: StoreDeclarerOptions);
[IS_STORE]: boolean;
static isStore(maybeStore: any): boolean;
}
declare function declareStore(Store: StoreBaseConstructor, options?: StoreDeclarerOptions): StoreDeclarer;
interface StoreListDeclarerOptions {
args?: [any];
storeKey?: string;
size?: number;
}
declare const IS_STORE_LIST = "@@__STORE_LIST__@@";
declare class StoreListDeclarer {
Store: StoreBaseConstructor;
options: StoreListDeclarerOptions | undefined;
constructor(Store: StoreBaseConstructor, options?: StoreListDeclarerOptions);
[IS_STORE_LIST]: boolean;
static isStoreList(maybeList: any): boolean;
}
declare function declareStoreList(Store: StoreBaseConstructor, options?: StoreListDeclarerOptions): StoreListDeclarer;
interface StoreMapDeclarerOptions {
args?: [any];
storeKey?: string;
keys?: [string];
directInsert?: boolean;
defaultFilter?: boolean;
storeDefaultFilter?: boolean;
}
declare const IS_STORE_MAP = "@@__STORE_MAP__@@";
declare class StoreMapDeclarer {
Store: StoreBaseConstructor;
options: StoreMapDeclarerOptions | undefined;
constructor(Store: StoreBaseConstructor, options?: StoreMapDeclarerOptions);
[IS_STORE_MAP]: boolean;
static isStoreMap(maybeMap: any): boolean;
}
declare function declareStoreMap(Store: StoreBaseConstructor, options?: StoreMapDeclarerOptions): StoreMapDeclarer;
export { StoreDeclarer, StoreListDeclarer, StoreMapDeclarer, declareStore, declareStoreList, declareStoreMap };
//# sourceMappingURL=StoreDeclarer.d.ts.map