mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
Update index.d.ts (#812)
toJSON function can return a list of ReactTestRendererJSON
This commit is contained in:
Vendored
+1
-1
@@ -309,7 +309,7 @@ export interface RenderAPI extends Queries {
|
||||
update(nextElement: React.ReactElement<any>): void;
|
||||
rerender(nextElement: React.ReactElement<any>): void;
|
||||
unmount(nextElement?: React.ReactElement<any>): void;
|
||||
toJSON(): ReactTestRendererJSON | null;
|
||||
toJSON(): ReactTestRendererJSON[] | ReactTestRendererJSON | null;
|
||||
debug: Debug;
|
||||
container: ReactTestInstance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user