react-docgen-typescript icon indicating copy to clipboard operation
react-docgen-typescript copied to clipboard

Can it output function doc if it is not a ReactFC?

Open javaxiu opened this issue 2 years ago • 2 comments

in this case

const Dialog = {
  show(props: T) {...}
}
export default Dialog

and I want to show an API document about Dialog.show ,is this even possible ? as I've tried, it seems not

javaxiu avatar May 09 '22 07:05 javaxiu

something similar seems to happen if I use React.VFC instead of React.FC , no docs

gaurav5430 avatar May 16 '22 18:05 gaurav5430

@pvasek I am seeing something similar in my project, are there any known bugs around functional components and react-docgen-typescript being able to parse props correctly?

foscjos2 avatar Jul 27 '22 20:07 foscjos2

There was no activity for a long time. The issue will be closed soon.

github-actions[bot] avatar Jul 28 '23 10:07 github-actions[bot]

Closing this issue as obsolete.

github-actions[bot] avatar Aug 04 '23 10:08 github-actions[bot]