// Type definitions for redux-thunk v2.1.0 // Project: https://github.com/gaearon/redux-thunk // Definitions by: Qubo , Kaur Kuut // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Redux from "redux"; import { Middleware } from "redux"; export as namespace ReduxThunk; declare const thunk: Middleware & { withExtraArgument(extraArgument: any): Middleware; }; export default thunk; declare module 'redux' { export type ThunkAction = (dispatch: Dispatch, getState: () => S, extraArgument: E) => R; export interface Dispatch { (asyncAction: ThunkAction): R; } }