Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsupport interfaces in automatic docs #2486
Comments
|
Thanks @KutnerUri for reporting this. |
|
Could it have something to do with the babel configuration? |
|
@KutnerUri , Yes! const componentsInfo = reactDocs.parse(data, reactDocs.resolver.findAllComponentDefinitions, undefined, {
configFile: false
});According to the docs, the syntax is const componentsInfo = reactDocs.parse(data, reactDocs.resolver.findAllComponentDefinitions, undefined, {
configFile: false,
parserOptions: { plugins: ['typescript', 'jsx'] }
});It'll work. |
|
this will probably be resolved by PR #2690 |


I have a component with types and jsdocs:
I get these docs:
When I change the type to be an interface, Bit no longer identifies the props as a type:
Please support interface syntax in automatic docs.😃
Specifications
bit version: 14.7.6