UNPKG

graphql-codegen-typescript-resolvers

Version:

graphql-codegen-cli template for TypeScript typings for both client side and server side

8 lines (7 loc) 595 B
import { SafeString } from 'handlebars'; import { Field, Type, Interface, Union } from 'graphql-codegen-core'; export declare const getFieldType: (convert: any) => (field: Field, options: Handlebars.HelperOptions) => string; export declare const getFieldResolverName: (convert: any) => (name: string) => string; export declare const getFieldResolver: (convert: any) => (field: Field, type: Type, options: Handlebars.HelperOptions) => "" | SafeString; export declare function getTypenames(entity: Interface | Union): string; export declare function isInterface(entity: any): entity is Interface;