graphql-codegen-typescript-resolvers
Version:
graphql-codegen-cli template for TypeScript typings for both client side and server side
9 lines (8 loc) • 694 B
TypeScript
import { SafeString } from 'handlebars';
import { Field, Type, Interface, Union } from 'graphql-codegen-core';
export declare function importFromGraphQL(options: Handlebars.HelperOptions): string;
export declare const getFieldType: (convert: any) => (field: Field, options: Handlebars.HelperOptions) => string;
export declare const getFieldResolverName: (convert: any, config: 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;