Skip to content

Commit ca8df60

Browse files
authored
Merge pull request #349 from ryota-murakami/chore/peer-deps
2 parents 01e31c0 + 698241d commit ca8df60

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

extend-redux.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
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",

typescript_test/typescript.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ actions.standardAction().other
144144

145145
const untypedStore = createStore(fakeReducer, applyMiddleware(thunk))
146146

147-
// @ts-expect-error
148147
untypedStore.dispatch(anotherThunkAction())
149-
// @ts-expect-error
150148
untypedStore.dispatch(promiseThunkAction()).then(() => Promise.resolve())
151149

152150
// #248: Need a union overload to handle generic dispatched types

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)