Use TOwnProps instead of IOwnProps

This commit is contained in:
Thomas Hasner
2017-04-18 13:51:36 -04:00
committed by GitHub
parent 5f03934940
commit 416c0f9c3d

View File

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