mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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 |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| package.json | ||
| react-redux-tests.tsx | ||
| tsconfig.json | ||