megaera
Version:
GraphQL to TypeScript Generator
6 lines (5 loc) • 299 B
TypeScript
import { Source } from 'graphql/language/index.js';
import { GraphQLSchema } from 'graphql/type/index.js';
export declare function transpile(schema: GraphQLSchema, source: Source): string;
export type Query = string & ((vars: any) => any);
export type Variables<T extends Query> = Parameters<T>[0];