Skip to content

Make consuming graphql-js easier with leveraged flow support #248

Closed
@kastermester

Description

@kastermester

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions