[React] change ShallowRenderer output to ReactElement

This commit is contained in:
Vincent Siao committed 2015-05-28 14:18:58 -07:00
1 parent 3ca8ceb795
commit bb793321c6
3 files changed
+6 -4

No files matched your search

+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;
}