Merge pull request #1351 from thomasbertet/fix-1307-invalid-node-type-to-props

Fix invalid prop 'node.type' supplied to 'Props'
This commit is contained in:
Norbert de Langen 2017-06-23 17:18:53 +02:00 committed by GitHub
commit 152630be57

View File

@ -61,10 +61,7 @@ Props.defaultProps = {
};
Props.propTypes = {
node: PropTypes.shape({
props: PropTypes.object,
type: PropTypes.node.isRequired,
}).isRequired,
node: PropTypes.node.isRequired,
singleLine: PropTypes.bool,
maxPropsIntoLine: PropTypes.number.isRequired,
maxPropObjectKeys: PropTypes.number.isRequired,