Skip to content

Codegen: Also generate a definition file for .graphql fils #604

@mohsen1

Description

@mohsen1

Similar to typed-css-modules the codegen can generate declaration files for existing query files that has list of exported queries and mutations.

This will help TypeScript enforce correct names when importing queries from .graphql file using "graphql-tag/loader".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions