Fix children type in ReactTestRendererJSON (#36049)

This commit is contained in:
Michelle 2019-06-13 07:47:08 +02:00 committed by Ron Buckton
parent cb3f27d091
commit d8e35ea545

View File

@ -17,8 +17,9 @@ import { ReactElement, ReactType } from "react";
export interface ReactTestRendererJSON {
type: string;
props: { [propName: string]: any };
children: null | ReactTestRendererJSON[];
children: null | ReactTestRendererNode[];
}
export type ReactTestRendererNode = ReactTestRendererJSON | string;
export interface ReactTestRendererTree extends ReactTestRendererJSON {
nodeType: "component" | "host";
instance: any;