declarations
Version:
[](https://www.npmjs.com/package/declarations)
25 lines (18 loc) • 754 B
TypeScript
// Type definitions for Redux Mock Store v0.0.6
// Project: https://github.com/arnaudbenard/redux-mock-store
// Definitions by: Marian Palkus <https://github.com/MarianPalkus>, Cap3 <http://www.cap3.de>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
///<reference path="../redux/redux.d.ts" />
declare module 'redux-mock-store' {
import * as Redux from 'redux'
function createMockStore<T>(middlewares?:Redux.Middleware[]):mockStore<T>
export type mockStore<T> = (state?:T) => IStore<T>;
export type IStore<T> = {
dispatch(action: any):any
getState():T
getActions():Object[]
clearActions():void
subscribe(listener: Function):Function
}
export default createMockStore
}