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