File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- import { ThunkAction } from './src/index'
1+ import type { ThunkAction } from './src/index'
22
33/**
44 * Globally alter the Redux `bindActionCreators` and `Dispatch` types to assume
Original file line number Diff line number Diff line change 4949 "prepack" : " yarn build"
5050 },
5151 "peerDependencies" : {
52- "redux" : " ^4"
52+ "redux" : " ^4 || ^5.0.0-beta.0 "
5353 },
5454 "devDependencies" : {
5555 "@typescript-eslint/eslint-plugin" : " ^5.1.0" ,
Original file line number Diff line number Diff line change @@ -144,9 +144,7 @@ actions.standardAction().other
144144
145145const untypedStore = createStore ( fakeReducer , applyMiddleware ( thunk ) )
146146
147- // @ts -expect-error
148147untypedStore . dispatch ( anotherThunkAction ( ) )
149- // @ts -expect-error
150148untypedStore . dispatch ( promiseThunkAction ( ) ) . then ( ( ) => Promise . resolve ( ) )
151149
152150// #248: Need a union overload to handle generic dispatched types
Original file line number Diff line number Diff line change @@ -2547,7 +2547,7 @@ __metadata:
25472547 typescript : ^4.4
25482548 vitest : ^0.29.8
25492549 peerDependencies :
2550- redux : ^4
2550+ redux : ^4 || ^5.0.0-beta.0
25512551 languageName : unknown
25522552 linkType : soft
25532553
You can’t perform that action at this time.
0 commit comments