Skip to content

Commit 2ab2645

Browse files
authored
Update index.d.ts (#812)
toJSON function can return a list of ReactTestRendererJSON
1 parent 1cbf516 commit 2ab2645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export interface RenderAPI extends Queries {
309309
update(nextElement: React.ReactElement<any>): void;
310310
rerender(nextElement: React.ReactElement<any>): void;
311311
unmount(nextElement?: React.ReactElement<any>): void;
312-
toJSON(): ReactTestRendererJSON | null;
312+
toJSON(): ReactTestRendererJSON[] | ReactTestRendererJSON | null;
313313
debug: Debug;
314314
container: ReactTestInstance;
315315
}

0 commit comments

Comments
 (0)