From 177a6f56388a43948ab365dd5c1d0ba6131adf9a Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Tue, 5 Sep 2017 13:45:18 -0500 Subject: [PATCH] [docs:api] remove defensive checks (#8057) Follow-on to #8056 --- docs/src/modules/utils/generateMarkdown.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/docs/src/modules/utils/generateMarkdown.js b/docs/src/modules/utils/generateMarkdown.js index bf41d2cee8ac8f..479cd4a2ef6384 100644 --- a/docs/src/modules/utils/generateMarkdown.js +++ b/docs/src/modules/utils/generateMarkdown.js @@ -23,12 +23,6 @@ function getDeprecatedInfo(type) { function generatePropDescription(description, type) { let deprecated = ''; - // FIXME: unsupported flow props from 0.53.x upgrade - // https://github.com/reactjs/react-docgen/issues/207 - if (type === undefined) { - return ''; - } - if (type.name === 'custom') { const deprecatedInfo = getDeprecatedInfo(type); @@ -92,12 +86,6 @@ function generatePropDescription(description, type) { } function generatePropType(type) { - // FIXME: unsupported flow props from 0.53.x upgrade - // https://github.com/reactjs/react-docgen/issues/207 - if (type === undefined) { - return ''; - } - switch (type.name) { case 'func': return 'function'; @@ -158,12 +146,6 @@ function generateProps(reactAPI) { | Name | Type | Default | Description | |:-----|:-----|:--------|:------------|\n`; - // FIXME: unsupported flow props from 0.53.x upgrade - // https://github.com/reactjs/react-docgen/issues/207 - if (reactAPI.props === undefined) { - return text; - } - text = Object.keys(reactAPI.props) .sort() .reduce((textProps, propRaw) => {