UNPKG

typedux

Version:

Slightly adjusted Redux (awesome by default) for TS

12 lines (11 loc) 628 B
import { Middleware } from "redux"; import { ObservableStore } from "../../store/ObservableStore"; import { StateArgs } from "../../reducers"; import { BaseActionFactory, ActionFactoryConstructor } from "../../actions"; /** * Shape of the factory used to build stores */ export interface MockStoreFactory { (fromState: any, storeReducer?: any, onStateChange?: Function, storeMixins?: any): ObservableStore<any>; } export declare function configureMockStoreFactory(middlewares?: Middleware[], stateArgs?: StateArgs[], actionFactories?: Array<ActionFactoryConstructor<any> | BaseActionFactory<any, any>>): MockStoreFactory;