From f56cf66945f0796283cfe24b9577f3d56e0b367f Mon Sep 17 00:00:00 2001 From: Mark Pedrotti Date: Mon, 23 Jan 2017 11:29:47 -0500 Subject: [PATCH] Replace 2 occurrences of string in type ReactTestRendererJSON (#8816) * Replace 2 occurrences of string in type ReactTestRendererJSON * restore string in ReactTestRendererFiber.js --- src/renderers/testing/ReactTestRendererFiber.js | 2 +- src/renderers/testing/stack/ReactTestRendererStack.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 }