// 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 /// declare namespace Redux { type ThunkAction = (dispatch: Dispatch, getState: () => S, extraArgument: E) => R; interface Dispatch { (asyncAction: ThunkAction): R; } } declare module "redux-thunk" { import { Middleware } from "redux"; const thunk: Middleware & { withExtraArgument(extraArgument: any): Middleware; }; export default thunk; }