UNPKG

675 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { Interpolation } from './types';
3export declare class Generator {
4 schema: GraphQLSchema;
5 inputSchemaPath: string;
6 outputBindingPath: string;
7 isDefaultExport: boolean;
8 constructor({ schema, inputSchemaPath, outputBindingPath, isDefaultExport, }: {
9 schema: GraphQLSchema;
10 inputSchemaPath: string;
11 outputBindingPath: string;
12 isDefaultExport: boolean;
13 });
14 render(): string;
15 compile(strings: TemplateStringsArray, ...interpolations: Interpolation<Generator>[]): string;
16 getRelativeSchemaPath(): string;
17 renderImports(): string;
18 renderExports(): string;
19}