graphql-static-binding
Version:
Generate static binding files for a GraphQL schema
10 lines (9 loc) • 803 B
TypeScript
import { GraphQLInputField, GraphQLField, GraphQLInputType, GraphQLOutputType, GraphQLFieldMap } from 'graphql';
import { Generator } from '../types';
export declare const generator: Generator;
export declare function renderExistsFields(fields: GraphQLFieldMap<any, any>): string;
export declare function renderMainMethodFields(operation: string, fields: GraphQLFieldMap<any, any>): string;
export declare function renderMainSubscriptionMethodFields(fields: GraphQLFieldMap<any, any>): string;
export declare function renderFieldName(field: GraphQLInputField | GraphQLField<any, any>): string;
export declare function renderFieldType(type: GraphQLInputType | GraphQLOutputType): any;
export declare function renderTypeWrapper(typeName: string, typeDescription: string, fieldDefinition: string): string;