Daniel Tschinder
Daniel Tschinder
The same idea would also apply to flow types, as they can be also imported. So maybe this "import something" could be abstracted in a way so it makes imported...
This is not yet possible. you can try using this resolver: https://github.com/Jmeyering/react-docgen-annotation-resolver
It seems we do not support this yet. PRs welcome.
The playground parses the code with flow enabled, but not sure if it would work if it gets parsed as typescript.
I just checked again and the problem is only happening when the Props are only defined in the `React.FC` and not in the props argument itself. Will look into this...
Thanks for this and sorry for the delay. I haven't had time to review this. It will take a little bit once I find time.
Can you please be more specific what "doesn't recognize" means? You get a parser error? If so can you please add the error message. Or do you receive an output...
This is a problem in `benjamn/ast-types`. I opened a PR there. benjamn/ast-types#467
Is this still a problem? I just tried on the website and it seems to be working. It might have to do with the version of @babel/parser you are using,...
Thanks for reporting. This is definitely wrong, we will have a look soon.