mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Fix children type in ReactTestRendererJSON (#36049)
This commit is contained in:
3
types/react-test-renderer/index.d.ts
vendored
3
types/react-test-renderer/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user