1 | import { DirectiveDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NameNode } from 'graphql';
|
2 | import { Config } from './merge-typedefs.js';
|
3 | type FieldDefNode = FieldDefinitionNode | InputValueDefinitionNode;
|
4 | type NamedDefNode = {
|
5 | name: NameNode;
|
6 | };
|
7 | export type OnFieldTypeConflict = (existingField: FieldDefNode, otherField: FieldDefNode, type: NamedDefNode, ignoreNullability: boolean | undefined) => FieldDefNode;
|
8 | export declare function mergeFields<T extends FieldDefNode>(type: {
|
9 | name: NameNode;
|
10 | }, f1: ReadonlyArray<T> | undefined, f2: ReadonlyArray<T> | undefined, config?: Config, directives?: Record<string, DirectiveDefinitionNode>): T[];
|
11 | export {};
|