marborkowski / react-doc-generator

Generate a simple React component documentation in Markdown.
MIT License
55 stars 30 forks source link

instanceOf(CustomClass) not rendered correctly in docs #4

Open nicolaslohrer opened 7 years ago

nicolaslohrer commented 7 years ago

Hey there,

thanks for the useful tool!

Using it, I came across a minor issue with custom class propType declarations. I've defined this in a component:

static propTypes = {
  notifications: PropTypes.instanceOf(Immutable.List).isRequired
};

In the generated docs.md the type is displayed as „instanceOf“, which is not particularly useful.

Regards, Nicolas