mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fix children type in ReactTestRendererJSON (#36049)
This commit is contained in:
parent
cb3f27d091
commit
d8e35ea545
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user