Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow support #45

Closed
tomparkp opened this issue Sep 16, 2016 · 3 comments
Closed

Flow support #45

tomparkp opened this issue Sep 16, 2016 · 3 comments

Comments

@tomparkp
Copy link

tomparkp commented Sep 16, 2016

This library compiles itself into dist/index.js using Babel which strips out the Flow annotations, but what about those of us using this in a flowtyped project that are using babel to compile later down the line? Is there any way to get autocompletion/type checks?

The only thing I can think of is writing a separate flowtype interface file and including it in my project, but given the definitions are already written it seems like there should be a way to load them from the node module.

@leebyron
Copy link
Contributor

Yeah, let's get a flow type file directly into the npm bundle. The Flow team is working on better tools for this, but I think we have a workaround to use in the meantime that should work just fine.

@wbyoung
Copy link

wbyoung commented Jan 30, 2017

@leebyron I just discovered this myself. Thanks for responding so quickly to the original question and getting a PR merged. Any releases planned soon that would include this?

@dpnova
Copy link

dpnova commented Jul 10, 2017

Sorry @leebyron you mentioned a workaround... is there some more information about that? I'm currently using create-stub in flowtyped to create stubs for libs like dataloader that already have type annotations...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants