I haven't been able to get react-docgen-typescript to find the default values. The forwardRef + TypeScript generic problem and workaround (described here) that we've had to do either leaves us with insufficient type safety for consumers or insufficient documentation.
We could add the default values to the prop comments using the jsdoc tag, which react-docgen-typescript understands.
Originally posted by @thompsongl in #5011 (comment)
I haven't been able to get
react-docgen-typescriptto find the default values. TheforwardRef+ TypeScript generic problem and workaround (described here) that we've had to do either leaves us with insufficient type safety for consumers or insufficient documentation.We could add the default values to the prop comments using the jsdoc tag, which
react-docgen-typescriptunderstands.Originally posted by @thompsongl in #5011 (comment)