I know that there is ability to check JS code with TS compiler. And I know that TS compiler understand JSDoc comments (https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-in-JavaScript).
I want to use TS compiler with my React project and I don't know how specify props definitions with JSDoc :(
I've tried
class PropertyDetails extends React.Component {
static propTypes = {
breadcrumbChange: PropTypes.func,
folderId: PropTypes.string.isRequired
}
/**
* @typedef {Object} Props
* @property {function} breadcrumbChange
* @property {string} folderId
*/
/**
* @constructor
* @param {Props} props
*/
constructor(props) {
super(props);
but it doesn't work.
Propsand useconstructor(props: Props)