// Generated by typings // Source: https://raw.githubusercontent.com/andrew-w-ross/typings-redux/2e0b57e18c6240d17fde045573d74e649762437b/redux.d.ts declare module '~redux-immutable~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/asvetliakov/typings-redux-immutable/138394e6fc7fcfed7be7cb950f55f74a69ddf319/index.d.ts declare module 'redux-immutable' { import {IReducer, IReducerMap} from '~redux-immutable~redux'; export function combineReducers(reducers: IReducerMap): IReducer; export function combineReducers(reducers: IReducerMap): IReducer; }