make connect stricter

This commit is contained in:
tkqubo
2015-10-20 21:19:56 +09:00
parent ddbcdd0d55
commit a513c4df6e
2 changed files with 30 additions and 6 deletions
+2 -1
View File
@@ -10,8 +10,9 @@ declare module "react-redux" {
import { Component } from 'react';
import { Store, Dispatch, ActionCreator } from 'redux';
export class ElementClass extends Component<any, any> { }
export interface ClassDecorator {
<TFunction extends Function>(target: TFunction): TFunction;
<T extends (typeof ElementClass)>(component: T): T
}
/**