Join GitHub today
Props autocomplete for components with declaration files #70
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.