From d153cd66dd4aeec42d593f0a22a3c62330661f7d Mon Sep 17 00:00:00 2001 From: Joao Ribeiro Date: Tue, 25 Jul 2017 20:38:26 +0200 Subject: [PATCH] Add support for new signature type added by react-docgen@next --- addons/info/src/components/PropTable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/info/src/components/PropTable.js b/addons/info/src/components/PropTable.js index 843969243bf8..aeb51e46e08f 100644 --- a/addons/info/src/components/PropTable.js +++ b/addons/info/src/components/PropTable.js @@ -36,6 +36,8 @@ const renderDocgenPropType = propType => { case 'instanceOf': return propType.value; case 'union': + return propType.raw; + case 'signature': return propType.raw; default: return name;