mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
[React] change ShallowRenderer output to ReactElement
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user