3 ms·
Awesome work! Are there plans to incorporate Flow definitions as an alternative to the __assumeDataProperty helpers? Edit: Looks like this is targeting compile
by phpnode 9y ago
Awesome work! Are there plans to incorporate Flow definitions as an alternative to the __assumeDataProperty helpers?
Edit: Looks like this is targeting compiler output, so Flow types would typically be gone by that stage. Integration with Flow could come via a babel plugin that emits `__assumeDataProperty()` when it encounters a convertible Flow type.
- phpnode 9y ago(can't edit my post any more) I made a plugin to do this here - https://github.com/codemix/flow-runtime/tree/master/packages/babel-plugin-flow-prepack https://github.com/codemix/flow-runtime/tree/master/packages...