Skip to content

Commit

Permalink
deps: use typings exported from @types/react-redux (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec authored and sorrycc committed Jun 26, 2019
1 parent 80ae4c7 commit 3c6f258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/dva/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,10 @@ export interface DvaInstance {

export default function dva(opts?: DvaOption): DvaInstance;

/**
* Connects a React component to Dva.
*/
export function connect(
mapStateToProps?: Function,
mapDispatchToProps?: Function,
mergeProps?: Function,
options?: Object
): Function;
export {
connect, connectAdvanced, useSelector, useDispatch, useStore,
DispatchProp,
} from 'react-redux';

import * as routerRedux from 'connected-react-router';
export { routerRedux };
Expand Down
1 change: 1 addition & 0 deletions packages/dva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0",
"@types/isomorphic-fetch": "^0.0.35",
"@types/react-redux": "^7.1.0",
"@types/react-router-dom": "^4.3.1",
"connected-react-router": "^6.3.2",
"dva-core": "1.6.0-beta.5",
Expand Down

0 comments on commit 3c6f258

Please sign in to comment.