Rescript-compiler: Generate Flow annotations a-la TypeScript

Created on 23 Aug 2016  路  9Comments  路  Source: rescript-lang/rescript-compiler

That'd be awesome for an existing flow codebase (lots of react codebases). We've discussed this before; formalizing this as an issue.

COMMUNITY

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.

All 9 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bobzhang picture bobzhang  路  4Comments

bobzhang picture bobzhang  路  4Comments

TheSpyder picture TheSpyder  路  5Comments

paparga picture paparga  路  5Comments

jordwalke picture jordwalke  路  4Comments