-
Notifications
You must be signed in to change notification settings - Fork 2k
Make consuming graphql-js easier with leveraged flow support #248
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
Comments
Yes, this is something we want to do! There are still a few issues with flow's treatment of type definitions when deployed to npm, but once those are fixed we will include flow definitions with this package. I'll keep this task open to track progress. |
With the recent changes to flow 0.19, where it will treat files with |
Do you have any comments regarding my suggestion @leebyron? If you think it is the right approach I would be happy to provide a PR to do this. |
I'm not sure actually, I'll consult the flow team on their desired best practices — On Sun, Dec 13, 2015 at 11:13 AM, Kaare Hoff Skovgaard
|
@leebyron Any updates on this? From what I can see, the |
Lee, you can always walk over to my desk if you have a question! |
@samwgoldman Is facebook use
will get some result like :
=>
According to fbjs/commit/7baf1f i should use the plugins included in : Now im temporarily directly rename all |
@samwgoldman oh, i got some idea. 'graphql' did not use |
@samwgoldman @kastermester I made a solution (flow-dynamic ) for this . See pr:89 i push to |
any progress on this? |
Since this issue was filed, GraphQL.js 0.8 came out which exports Flow types. Perhaps the issue can be closed? |
Yep, latest version has flow types! |
that's cool, thanks for closing this 🎉 |
Hi, I get /* @flow */
import { GraphQLObjectType } from 'graphql';
const SomeType = new GraphQLObjectType({
name: 'name',
}); And if I set The same I see in |
@istarkov: Mind filing this as a separate issue? And when you do, can you answer the following?
@istarkov: I'm seeing Thanks. |
@wincent It's not about |
Hello,
Looking at the entire code base for graphql I see that it uses flow everywhere, which is quite nice :)
However when I am consuming the library, there's no way for me to leverage all of this type goodness. I have taken a stab at writing up a library definitions file, but that feels kinda icky to me as well, and besides I have quite a few issues getting them to work.
It would be really cool if there was a way to publish the package in a way where people using flow could use the types written inside the code base. I am aware of the project that tries to embed the types into comments, but I am not entirely sure how far along that project is in making it actually work with such a sizeable code base.
Are there any plans, or anyone with a better idea of how to export the flow types in this package to other users? An officially maintained library would of course work for me as well, but my guess would be that that could get out of hand to maintain quite fast.
The text was updated successfully, but these errors were encountered: