[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
@@ -269,7 +269,8 @@ declare module React {
}
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;
}