evenchange4 / graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
MIT License
239 stars 21 forks source link

Typescript Types? #41

Closed Slessi closed 5 years ago

Slessi commented 5 years ago

Something like this if I am understanding right?

declare module 'graphql.macro' {
  import { DocumentNode } from 'graphql';

  export function loader(path: string): DocumentNode;
  export function gql(path: TemplateStringsArray): DocumentNode;
}
evenchange4 commented 5 years ago

Please try v1.3.3 and feel free to reopen this issue if there is any problem.