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