Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescript 4.2 breaks react-redux' types in a subtle way, described at microsoft/TypeScript#42421. That changes preserves type aliases, but it also treats them more nominally for the purposes of inference. The result is that ConnectedProps, which normally tries to infer a type argument from InferableComponentEnhancerWithProps, needs to add a fallback inference from InferableComponentEnhancer, *even though* the latter is just a type alias. This is a non-breaking change; it would be simpler just to remove InferableComponentEnhancer and give InferableComponentEnhancerWithProps a type parameter default, but that would be a breaking change since both types are exported.
- Loading branch information