UNPKG

681 BTypeScriptView Raw
1import { SafeString } from 'handlebars';
2import { Field, Type, Interface, Union } from 'graphql-codegen-core';
3export declare function importFromGraphQL(options: Handlebars.HelperOptions): string;
4export declare const getFieldType: (convert: any) => (field: Field, options: Handlebars.HelperOptions) => string;
5export declare const getFieldResolverName: (convert: any) => (name: string) => string;
6export declare const getFieldResolver: (convert: any) => (field: Field, type: Type, options: Handlebars.HelperOptions) => "" | SafeString;
7export declare function getTypenames(entity: Interface | Union): string;
8export declare function isInterface(entity: any): entity is Interface;