Replace 2 occurrences of string in type ReactTestRendererJSON (#8816)
* Replace 2 occurrences of string in type ReactTestRendererJSON * restore string in ReactTestRendererFiber.js
Mark Pedrotti committed
Jan 23, 2017 at 11:29 UTC
f56cf66945f0796283cfe24b9577f3d56e0b367f
2 files changed
+4
-3
src/renderers/testing/ReactTestRendererFiber.js
+1
-1
@@ -21,7 +21,7 @@ import type { TestRendererOptions } from 'ReactTestMount';
21
22
type ReactTestRendererJSON = {|
23
type : string,
24
- props : {[propName: string] : string },
24
+ props : {[propName: string] : any },
25
children : null | Array<ReactTestRendererNode>,
26
$$typeof ?: Symbol, // Optional because we add it with defineProperty().
27
|};
src/renderers/testing/stack/ReactTestRendererStack.js
+3
-2
@@ -27,11 +27,12 @@ var invariant = require('invariant');
27
28
import type { ReactElement } from 'ReactElementType';
29
import type { ReactInstance } from 'ReactInstanceType';
30
+import type { ReactText } from 'ReactTypes';
31
32
type ReactTestRendererJSON = {
33
type: string,
33
- props: { [propName: string]: string },
34
- children: null | Array<string | ReactTestRendererJSON>,
34
+ props: { [propName: string]: any },
35
+ children: null | Array<ReactText | ReactTestRendererJSON>,
36
$$typeof?: any
37
}
38