UNPKG

607 BTypeScriptView Raw
1/// <reference types="handlebars" />
2import { Field, Type } from 'graphql-codegen-core';
3import { GraphQLNamedType } from 'graphql';
4export interface ParentsMap {
5 [key: string]: string;
6}
7export interface Mapper {
8 isExternal: boolean;
9 type: string;
10 source?: string;
11}
12export declare function parseMapper(mapper: string): Mapper;
13export declare function pickMapper(entity: string, map: ParentsMap, options: Handlebars.HelperOptions): Mapper | undefined;
14export declare function useDefaultMapper(entity: Field | Type | GraphQLNamedType, options: Handlebars.HelperOptions): Mapper | undefined;