[React] change ShallowRenderer output to ReactElement

This commit is contained in:
Vincent Siao
2015-05-28 14:18:58 -07:00
parent 3ca8ceb795
commit bb793321c6
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1004,7 +1004,8 @@ declare module "react/addons" {
}
class ShallowRenderer {
getRenderOutput<C extends Component<any, any>>(): C;
getRenderOutput<E extends ReactElement<any>>(): E;
getRenderOutput(): ReactElement<any>;
render(element: ReactElement<any>, context?: any): void;
unmount(): void;
}