[react] ReactTestUtils custom typeguards

This commit is contained in:
Vincent Siao committed 2016-03-14 01:46:14 -07:00
1 parent 1917a4122a
commit 5e85e146c6
3 files changed
+31 -7

No files matched your search

+1 -1
View File
@@ -174,12 +174,12 @@ declare namespace __React {
contextTypes?: ValidationMap<any>;
childContextTypes?: ValidationMap<any>;
defaultProps?: P;
displayName?: string;
}
interface ClassicComponentClass<P> extends ComponentClass<P> {
new(props?: P, context?: any): ClassicComponent<P, any>;
getDefaultProps?(): P;
displayName?: string;
}
//