mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
CommonWrapper accepts ReactElements and strings in contains method
This commit is contained in:
parent
38894f063d
commit
21b49700d3
2
types/enzyme/index.d.ts
vendored
2
types/enzyme/index.d.ts
vendored
@ -56,7 +56,7 @@ export interface CommonWrapper<P = {}, S = {}> {
|
||||
* Returns whether or not the current wrapper has a node anywhere in it's render tree that looks like the one passed in.
|
||||
* @param node
|
||||
*/
|
||||
contains(node: ReactElement<any>): boolean;
|
||||
contains(node: ReactElement<any> | string): boolean;
|
||||
|
||||
/**
|
||||
* Returns whether or not a given react element exists in the shallow render tree.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user