You can use babel with strip-flow-types type conversion and use this jsdoc plugin .
First you need to install babel and related packages and jsdoc-babel on top of jsdoc. Then create a jsdoc-conf.json file in the root directory containing something like the following:
{
"plugins": ["node_modules/jsdoc-babel"],
"babel": {
"presets": ["react"],
"plugins": ["transform-react-jsx", "transform-flow-strip-types"]
}
}
You can use any valid Babel setting with jsdoc-babel, for example. presets for ES2015 or other plugins for babel. Hope this helps!
source
share