react-docgen
react-docgen copied to clipboard
Typescript generic class component props not parsed
Consider the example component below which is very common. I cannot parse the props. am i doing something incorrect here? please copy paste in the playgrounds and try it for yourselves. https://reactcommunity.org/react-docgen/
import React, { Component } from 'react';
interface Props {
/**
* name of person
*/
name: string;
}
class MyComponent<T extends Props> extends Component<T> {
render() {
<p>hello</p>
}
}
export default MyComponent;
I expect to get the props parsed for this component from the interface 'Props' But no props are parsed.