Draft-js: Expose flow.

Created on 4 May 2016  路  5Comments  路  Source: facebook/draft-js

Hey,
As I can see draft-js uses flow and has flow annotations.
Would it be possible to leave them in in the dist?
This would allow people who use flow to take advantage of them.

Most helpful comment

it might be cleaner long term to do a single flow lib.

I agree. Once we get the flow-typed CLI shipped, the next thing i would like to explore is some tooling to generate libdefs from flow typed .js files (for contribution). If that works out well, maybe we can build tooling to auto-contribute libdefs on npm publish for each version...

All 5 comments

We have some infra for this in place (it's how fbjs works) so it should be possible. I'm not sure if that method is the best way to do it for something like this or if we'd want a single top-level flow lib. Let's talk with @hellendag when he gets back (per #355)

I've talked to jeffmo of flow and he suggested either .js.flow files or a single top level flow lib (like immutable.js)

Right, those are the options I'm talking about too :) We can build the .js.flow files easily and that _should_ work but it might be cleaner long term to do a single flow lib.

it might be cleaner long term to do a single flow lib.

I agree. Once we get the flow-typed CLI shipped, the next thing i would like to explore is some tooling to generate libdefs from flow typed .js files (for contribution). If that works out well, maybe we can build tooling to auto-contribute libdefs on npm publish for each version...

(but in the meantime, .js.flow files might be a good stop-gap if it's easy)

Was this page helpful?
0 / 5 - 0 ratings