React-styleguidist: Support for Flow types

Created on 31 Mar 2016  路  5Comments  路  Source: styleguidist/react-styleguidist

This is more a question. react-docgen support for flow, but I am not sure that react-styleguidist does.
As a workaround, there is a babel plugin to transform flow types as props .

documentation help wanted question

Most helpful comment

I confirm this is working like a charm, without any propTypes (only flow annotation) and no plugin to generate those.
You can safely add a note in the README ;)

All 5 comments

From what I see it should be ok as the result seems following the same format.

It would be nice if you or anyone could check that because I don鈥檛 use Flow anywhere.

We use flow in our project and everything works fine. :)

I confirm this is working like a charm, without any propTypes (only flow annotation) and no plugin to generate those.
You can safely add a note in the README ;)

But does it support Flow type definitions like:

type Tab = "TAB1" | "TAB2";

It seems not. Still looking into it

UPD: false alarm. It was because I'm using react-scripts-cssmodules instead of react-scripts

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stcherenkov picture stcherenkov  路  3Comments

XOP picture XOP  路  3Comments

dzimmerman902 picture dzimmerman902  路  3Comments

crobinson42 picture crobinson42  路  3Comments

gscottolson picture gscottolson  路  3Comments