Skip to content

Commit

Permalink
Export ThunkDispatch from redux-thunk. (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyers committed Apr 4, 2020
1 parent c9bdd90 commit 828026d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions etc/redux-toolkit.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ export type SliceCaseReducers<State> = {

export { ThunkAction }

export { ThunkDispatch }

// @alpha (undocumented)
export function unwrapResult<R extends ActionTypesWithOptionalErrorAction>(returned: R): PayloadForActionTypesExcludingErrorActions<R>;

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export {
OutputSelector,
ParametricSelector
} from 'reselect'
export { ThunkAction } from 'redux-thunk'
export { ThunkAction, ThunkDispatch } from 'redux-thunk'

// We deliberately enable Immer's ES5 support, on the grounds that
// we assume RTK will be used with React Native and other Proxy-less
Expand Down

0 comments on commit 828026d

Please sign in to comment.