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:
Mark Pedrotti
2017-01-23 17:29:47 +01:00
committed by Dan Abramov
parent 5659bd2a63
commit f56cf66945
2 changed files with 4 additions and 3 deletions
@@ -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
}