That'd be awesome for an existing flow codebase (lots of react codebases). We've discussed this before; formalizing this as an issue.
This would be glorious.
anyone interested in working on this? I would like to help
@bobzhang I started exploring this a couple of weeks ago. But had almost no time. No it's getting better I hope. I will create a WIP PR today with what I have.
No time for this but I'll put this out here: https://github.com/chenglou/jeason/blob/master/README_DONT_TWEET_ABOUT_THIS_YET.md
This takes in the Flow JS AST and outputs reason code. I don't do anything with type info yet.
Where does this project stand? @bobzhang @pvolok @chenglou
I would love to see this too -- if BuckleScript could generate both Flow and TypeScript typedefs from a Reason codebase it would be an incredibly compelling argument for why people should write their libraries with Reason.
Any news here?
if BuckleScript could generate both Flow and TypeScript typedefs from a Reason codebase it would be an incredibly compelling argument for why people should write their libraries with Reason.
Yes, would really love to see this. Anything we can do to help? @chenglou
I think this can be closed now thanks to genType?
Most helpful comment
I would love to see this too -- if BuckleScript could generate both Flow and TypeScript typedefs from a Reason codebase it would be an incredibly compelling argument for why people should write their libraries with Reason.