diff --git a/src/renderers/testing/ReactTestRendererFiber.js b/src/renderers/testing/ReactTestRendererFiber.js index e9db09a3ce..2ce0d79788 100644 --- a/src/renderers/testing/ReactTestRendererFiber.js +++ b/src/renderers/testing/ReactTestRendererFiber.js @@ -21,7 +21,7 @@ import type { TestRendererOptions } from 'ReactTestMount'; type ReactTestRendererJSON = {| type : string, - props : {[propName: string] : string }, + props : {[propName: string] : any }, children : null | Array, $$typeof ?: Symbol, // Optional because we add it with defineProperty(). |}; diff --git a/src/renderers/testing/stack/ReactTestRendererStack.js b/src/renderers/testing/stack/ReactTestRendererStack.js index 5e4ad70b3a..e0a9355e33 100644 --- a/src/renderers/testing/stack/ReactTestRendererStack.js +++ b/src/renderers/testing/stack/ReactTestRendererStack.js @@ -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, + props: { [propName: string]: any }, + children: null | Array, $$typeof?: any }