mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
fix ReactTestIntance type typing (#29335)
Tested with the following code: ``` component.root.find( node => node.type === MyButton && node.props.type === ‘submit’ ) ```
This commit is contained in:
committed by
Wesley Wigham
parent
2867a96403
commit
ad70a5bc23
Vendored
+1
-1
@@ -25,7 +25,7 @@ export interface ReactTestRendererTree extends ReactTestRendererJSON {
|
||||
}
|
||||
export interface ReactTestInstance {
|
||||
instance: any;
|
||||
type: string;
|
||||
type: ReactType;
|
||||
props: { [propName: string]: any };
|
||||
parent: null | ReactTestInstance;
|
||||
children: Array<ReactTestInstance | string>;
|
||||
|
||||
Reference in New Issue
Block a user