mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Replace 2 occurrences of string in type ReactTestRendererJSON (#8816)
* Replace 2 occurrences of string in type ReactTestRendererJSON * restore string in ReactTestRendererFiber.js
This commit is contained in:
committed by
Dan Abramov
parent
5659bd2a63
commit
f56cf66945
@@ -21,7 +21,7 @@ import type { TestRendererOptions } from 'ReactTestMount';
|
||||
|
||||
type ReactTestRendererJSON = {|
|
||||
type : string,
|
||||
props : {[propName: string] : string },
|
||||
props : {[propName: string] : any },
|
||||
children : null | Array<ReactTestRendererNode>,
|
||||
$$typeof ?: Symbol, // Optional because we add it with defineProperty().
|
||||
|};
|
||||
|
||||
@@ -27,11 +27,12 @@ var invariant = require('invariant');
|
||||
|
||||
import type { ReactElement } from 'ReactElementType';
|
||||
import type { ReactInstance } from 'ReactInstanceType';
|
||||
import type { ReactText } from 'ReactTypes';
|
||||
|
||||
type ReactTestRendererJSON = {
|
||||
type: string,
|
||||
props: { [propName: string]: string },
|
||||
children: null | Array<string | ReactTestRendererJSON>,
|
||||
props: { [propName: string]: any },
|
||||
children: null | Array<ReactText | ReactTestRendererJSON>,
|
||||
$$typeof?: any
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user