// Generated by typings // Source: https://raw.githubusercontent.com/andrew-w-ross/typings-redux/master/redux.d.ts declare module '~react-redux~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-react-redux/21202533f75a73d4fa4c50e0357aaf23739fcabb/react-redux.d.ts declare module 'react-redux' { import * as React from 'react'; import {IStore, IDispatch} from '~react-redux~redux'; module ReactRedux { export class Provider extends React.Component<{store:IStore},{}>{} export interface IMapStateToProps { (state: any, ownProps?: any): Object; } export interface IMapDispatchToProps { (dispatch: IDispatch, ownProps?: any): Object; } export interface IConnectOptions { pure?: boolean; withRef?: boolean; } type ComponentConstructor

= React.ComponentClass

| React.StatelessComponent

function wrapWithConnect>( component: T ): T export function connect( mapStateToProps?: IMapStateToProps, mapDispatchToProps?: IMapDispatchToProps | Object, mergeProps?: (stateProps: Object, dispatchProps: Object, ownProps: Object) => Object, options?: IConnectOptions ): typeof wrapWithConnect; } export = ReactRedux; }