Update index.d.ts (#812)

toJSON function can return a list of ReactTestRendererJSON
This commit is contained in:
Ilya.Stepanov
2021-09-13 12:55:48 +02:00
committed by GitHub
parent 1cbf51644e
commit 2ab2645e1d
+1 -1
View File
@@ -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;
}