UNPKG

@gongt/ts-stl-client

Version:
17 lines (16 loc) 848 B
import { GlobalVariable } from "@gongt/ts-stl-library/pattern/global-page-data"; import { ArrayOrSingle } from "../global"; import { IState } from "./preload-state"; import { AppStore, LogicFunction, ReduxStore } from "./store"; export declare type EmptyPreloadHandler = (state: any) => void; export interface IClientStateCreator<StateInterface extends IState> { (store: StateInterface, req: GlobalVariable): StateInterface; } export declare class ReduxStoreWindow<StateInterface extends IState> extends ReduxStore<StateInterface> { protected readonly composeEnhancers: any; readonly singleton: AppStore<StateInterface>; constructor(logicRegister?: ArrayOrSingle<LogicFunction<StateInterface>>); private emptyPlHandlers; pushEmptyPreloadHandler(fn: EmptyPreloadHandler): void; createStore(): AppStore<StateInterface>; }