UNPKG

typedux

Version:

Slightly adjusted Redux (awesome by default) for TS

23 lines (22 loc) 785 B
import { Reducer } from 'redux'; import { MockStoreFactory } from './MockStore'; import { ObservableStore } from "../../store/ObservableStore"; /** * Install a completely mock - EMPTY * store provider for the actions * framework */ export declare function installMockGlobalStore(store: ObservableStore<any>): void; /** * In testing any of these types can be provided as a state */ export declare type TestStateType = Function | void; /** * Create a mock store for the sake of testing * * @param getState * @param storeReducers * @param onStateChange * @returns {MockStore} */ export declare function createMockStore(getState: TestStateType, storeReducers?: Reducer<any>, onStateChange?: (newState: any) => void, mockStoreFactory?: MockStoreFactory): ObservableStore<any>;