Skip to content

Commit

Permalink
Merge pull request #349 from ryota-murakami/chore/peer-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Aug 19, 2023
2 parents 01e31c0 + 698241d commit ca8df60
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extend-redux.d.ts
@@ -1,4 +1,4 @@
import { ThunkAction } from './src/index'
import type { ThunkAction } from './src/index'

/**
* Globally alter the Redux `bindActionCreators` and `Dispatch` types to assume
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,7 +49,7 @@
"prepack": "yarn build"
},
"peerDependencies": {
"redux": "^4"
"redux": "^4 || ^5.0.0-beta.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.1.0",
Expand Down
2 changes: 0 additions & 2 deletions typescript_test/typescript.ts
Expand Up @@ -144,9 +144,7 @@ actions.standardAction().other

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

// @ts-expect-error
untypedStore.dispatch(anotherThunkAction())
// @ts-expect-error
untypedStore.dispatch(promiseThunkAction()).then(() => Promise.resolve())

// #248: Need a union overload to handle generic dispatched types
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -2547,7 +2547,7 @@ __metadata:
typescript: ^4.4
vitest: ^0.29.8
peerDependencies:
redux: ^4
redux: ^4 || ^5.0.0-beta.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit ca8df60

Please sign in to comment.