Type alias ThunkMiddleware<State, BasicAction, ExtraThunkArg>

ThunkMiddleware<State, BasicAction, ExtraThunkArg>: Middleware<ThunkDispatch<State, ExtraThunkArg, BasicAction>, State, ThunkDispatch<State, ExtraThunkArg, BasicAction>>

Type Parameters

  • State = any

    The redux state

  • BasicAction extends Action = AnyAction

    The (non-thunk) actions that can be dispatched

  • ExtraThunkArg = undefined

    An optional extra argument to pass to a thunk's inner function. (Only used if you call thunk.withExtraArgument())

Generated using TypeDoc