mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-11 16:14:37 +00:00
* react-redux: add types for hooks which will be added in version 7.1 * react-redux: fix linting error due to redundant type declaration in JSDoc comment * react-redux: convert action creator return type to any in useActions and useRedux * react-redux: fix linting errors * react-redux: fix mistake in `useActions` hook example code * react-redux: add proper type annotations in hooks example code comments * react-redux: support thunks in `useActions`, `useDispatch`, and `useRedux`; add tests for hooks; bump TypeScript required version to 3.1 (implemented by @threehams) * react-redux: remove obsolete comment * react-redux: adjust thunk array handling to work with TypeScript 3.0 * react-redux: Remove useRedux hook With the release of react-redux@7.1.0-alpha.3, `useRedux` has been removed, so removing it from the types. * update typings for latest react-redux hooks API changes + add overload for `useDispatch` that allows customizing the type of the returned dispatch function * react-redux: add equalityFn argument to useSelector * react-redux: add newly exported shallowEqual function; add tests for shallowEqual and equalityFn parameter of useSelector * react-redux: add interface that allows to easily create a typed useSelector hook