DefinitelyTyped/types/react-redux
Marco Buono b7486f2c4d react-redux: fix dispatchToProps as object
This fixes the resulting wrapped component type returned by
the connect HOC when the `dispatchToProps` argument is an object. (Fixes
issue #18955)

Previously we were using `MapDispatchToPropsObject` but that doesn't
work with `Omit<T, K>`, so dispatch props were being preserved on the
resulting object. I've replaced that with `TDispatchProps` instead.

I've added test code by @horiuchi, adapted from:
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18955
2017-08-18 21:06:54 -03:00
..
index.d.ts react-redux: fix dispatchToProps as object 2017-08-18 21:06:54 -03:00
package.json
react-redux-tests.tsx react-redux: fix dispatchToProps as object 2017-08-18 21:06:54 -03:00
tsconfig.json