From fe08a31af95df13e2ec018ad6c51f5e2a0b876fc Mon Sep 17 00:00:00 2001 From: "Ilya.Stepanov" <54280083+thatsLegit@users.noreply.github.com> Date: Thu, 9 Sep 2021 16:36:11 +0200 Subject: [PATCH] Update index.d.ts toJSON function can return a list of ReactTestRendererJSON --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c0188727d..d42639d53 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -309,7 +309,7 @@ export interface RenderAPI extends Queries { update(nextElement: React.ReactElement): void; rerender(nextElement: React.ReactElement): void; unmount(nextElement?: React.ReactElement): void; - toJSON(): ReactTestRendererJSON | null; + toJSON(): ReactTestRendererJSON[] | ReactTestRendererJSON | null; debug: Debug; container: ReactTestInstance; }