react-docgen-typescript
react-docgen-typescript copied to clipboard
A simple parser for react properties defined in typescript instead of propTypes.
Hello. I have some trouble with ArgsTable component. This is my component ``` export const Input = forwardRef(({ className, style, variation = 'fill', display = 'normal', size = 'small', status,...
I noticed poking around that the parser code has some bottlenecks in the form of synchronous file I/O: https://github.com/styleguidist/react-docgen-typescript/blob/master/src/parser.ts Is there a technical limitation that precludes using promises and async...
We build a lot of components by extending some basic primitives and as such, most of our component prop interfaces begin by extending the props of those primitive components. For...
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...
I'm facing issue running storybook with react-docgen-typescript. I run `npm run storybook`, which runs `start-storybook -p 6006`. Here's my setup. node version: 16.15 npm version: 8.5.5 OS: mac storybook version:...
Fixes: #395 Fixes: #437 I basically did the fix outlined in #437 by @jesstelford and added some tests. The tests all seem to fail 😬 Would love to fix the...
If I have some component: ```tsx const BaseButton = (props: BaseButtonProps) => ; const StyledButton = styled(BaseButton)``; export type ButtonProps = {}; // unimportant export const Button = (props: ButtonProps)...
Resolves #432 cc @joshwooding This PR adds a property called `rawExpression` to the parsed object when `shouldIncludeExpression` is set, in addition to the existing `expression` property. The two are identical...
Components that do not accept a `children` prop, or declare `children` as another type such as a function can declare their type with `React.VoidFunctionComponent`, or with the shorthand alias `React.VFC`....
I want to make a webpack loader to transpile a typescript file to doc , which means parser will accept code as argument but not filepath: ```javascript module.exports.default = function...