mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
[React] change ShallowRenderer output to ReactElement
This commit is contained in:
1 parent
3ca8ceb795
commit
bb793321c6
3 files changed
+6
-4
No files matched your search
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