[react-redux] Improve connect type

This commit is contained in:
Blake Embrey
2017-05-19 19:50:56 -04:00
committed by GitHub
parent bc03ffee4c
commit 6e54d75c68

View File

@@ -25,7 +25,7 @@ interface ComponentDecorator<TOwnProps, TMergedProps> {
* Can't use the above decorator because it would default the type to {}
*/
export interface InferableComponentDecorator<TOwnProps> {
<T extends Component<TOwnProps>>(component: T): T;
<T>(component: Component<T & TOwnProps>): Component<TOwnProps>;
}
/**