React-styleguidist: Using TypeScript interfaces to describe props — is it ever possible?

Created on 9 Apr 2016  Â·  3Comments  Â·  Source: styleguidist/react-styleguidist

I'm using React Styleguidist with TypeScript and I don't want to write propTypes but I want to have components API described on Styleguidist page.

question

Most helpful comment

This is perfect, thanks a lot. I put together a simple implementation of props parser for typescript.

You can find it here:
https://github.com/pvasek/react-docgen-typescript

All 3 comments

For future seekers: you can override internal props loader and implement your own parser.
https://github.com/sapegin/react-styleguidist/blob/master/loaders/props.loader.js

This is perfect, thanks a lot. I put together a simple implementation of props parser for typescript.

You can find it here:
https://github.com/pvasek/react-docgen-typescript

For TypeScript install styleguidist/react-docgen-typescript

Was this page helpful?
0 / 5 - 0 ratings