Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flow-lib
: JS interfaces for Flow APIs
Summary: This is a first-pass on an idea for an npm package, called `flow-lib`, that allows JS tooling consumers to interface easily with Flow APIs. Pending more experimentation, my hope is that this can become a stable way for JS tooling to integrate with Flow via a simple, well-versioned npm dependency. To start out I've added JS APIs for `flow check-contents`, `flow ast`, and Flow type definitions for the AST. I also intend to add `type-at-pos`-like APIs as well (all of the tooling needs I can imagine right now need this more than anything else) -- but before that I need to find a good way to represent types that isn't coupled too tightly with Flow implementation details. I'm still working on this and will update when I have something more here. **NOTE: This is only an RFC while I look into more concrete use cases. I am putting this out for discussion, but I don't necessarily expect to merge it until we see it prove useful or promising for some *specific* tooling needs** Closes #1360 Reviewed By: samwgoldman Differential Revision: D3676384 Pulled By: jeffmo fbshipit-source-id: 96925ebcf12d0509fe49eaa1e17d7958edc20ada
- Loading branch information