// Generated by typings // Source: https://raw.githubusercontent.com/andrew-w-ross/typings-redux/master/redux.d.ts declare module '~redux-thunk~redux' { module redux { //This should be extended export interface IAction { type: string | number; } export interface IActionGeneric extends IAction { payload?: TPayload; error?: Error; meta?: any; } export interface IReducer { (state: TState, action: IAction): TState; } export interface IReducerMap { [key: string]: IReducerMap | IReducer } export interface IDispatch { (action: IAction): IAction; } export interface IMiddlewareStore { getState(): TState; dispatch: IDispatch; } export interface IStore extends IMiddlewareStore { subscribe(listener: (state: TState) => any): () => void; replaceReducer(nextReducer: IReducer): void; } export interface IMiddleware { (middlewareStore: IMiddlewareStore): (next: IDispatch) => IDispatch; } export interface ICreateStoreGeneric { (reducer: IReducer, initialState?: TState): IStore; } export interface IStoreEnhancerGeneric { (createStore: ICreateStoreGeneric): ICreateStoreGeneric; } export function createStore(reducer: IReducer, initialState?: TState): IStore; export function combineReducers(reducers: IReducerMap): IReducer; export function combineReducers(reducers: IReducerMap): IReducer; export function applyMiddleware(...middlewares: IMiddleware[]): IStoreEnhancerGeneric; export function bindActionCreators(actionCreators: TActionCreator, dispatch: IDispatch): TActionCreator; export function compose(...functions: { (arg: TArg): TArg }[]): (arg: TArg) => TArg; export function compose(...functions: { (arg: any): any }[]): (arg: any) => any; } export = redux; } // Generated by typings // Source: https://raw.githubusercontent.com/andrew-w-ross/typings-redux-thunk/17585a9603d92a2547cd1e429fceec8a8f1daa2a/redux-thunk.d.ts declare module 'redux-thunk' { import {IMiddleware, IDispatch, IAction} from '~redux-thunk~redux'; module '~redux-thunk~redux' { interface IDispatch { (thunk: Function): any; } } const thunkMiddleware : IMiddleware; export default thunkMiddleware; }