UNPKG

703 BTypeScriptView Raw
1import { DefinitionNode, DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
2import { NamedDefinitionNode } from '@graphql-tools/utils';
3import { Config } from './merge-typedefs.js';
4export declare const schemaDefSymbol = "SCHEMA_DEF_SYMBOL";
5export type MergedResultMap = Record<string, NamedDefinitionNode> & {
6 [schemaDefSymbol]: SchemaDefinitionNode | SchemaExtensionNode;
7};
8export declare function isNamedDefinitionNode(definitionNode: DefinitionNode): definitionNode is NamedDefinitionNode;
9export declare function mergeGraphQLNodes(nodes: ReadonlyArray<DefinitionNode>, config?: Config, directives?: Record<string, DirectiveDefinitionNode>): MergedResultMap;