Open
Description
Originally reported in styleguidist/react-styleguidist#13 (comment).
I use an expression in React.PropTypes.oneOf(...)
. This is the output from react-docgen
:
{
"description": "",
"props": {
"issue": {
"type": {
"name": "object"
},
"required": false,
"description": ""
},
"width": {
"type": {
"name": "enum",
"computed": true,
"value": "_.map(_.keys(coverWidths), _.parseInt)" <------- problem
},
"required": false,
"description": ""
},
"style": {
"type": {
"name": "object"
},
"required": false,
"description": ""
}
}
}
coverWidths
is a variable defined in that file. In runtime it's generated correctly, but react-docgen
can't parse it.
value
in the marked line should be null
, and there should be a raw
property with it instead.