Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Props autocomplete for components with declaration files #70

eps1lon opened this issue May 10, 2019 · 0 comments


Copy link

commented May 10, 2019

I was super impressed by the presentation at React Amsterdam 2019 and immediately started playing with some ideas. After some little experiments I was already pretty satisfied. The biggest issue right now is missing props autocomplete. The problem is that the props are not defined in an actual TypeScript file but in a declarations file. It seems like react-docgen-typescript can't detect components in those properly.

It's not really important to get this working from the typescript declarations. Those are pretty complicated and we already have this information available from another source. My question is if I should rather work on making react-docgen-typescript work with declaration files or work on an API for playroom so that I can inject prop types from arbitrary sources. Essentially allowing plugins for typescript, flow or prop-types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.