1 | import { GraphQLSchema, GraphQLCompositeType, GraphQLField, FieldNode, ASTNode, NameNode, SelectionSetNode, DirectiveDefinitionNode, FragmentDefinitionNode, InlineFragmentNode } from "graphql";
|
2 | import { ExecutionContext } from "graphql/execution/execute";
|
3 | export declare function isNode(maybeNode: any): maybeNode is ASTNode;
|
4 | export declare type NamedNode = ASTNode & {
|
5 | name: NameNode;
|
6 | };
|
7 | export declare function isNamedNode(node: ASTNode): node is NamedNode;
|
8 | export declare function isDirectiveDefinitionNode(node: ASTNode): node is DirectiveDefinitionNode;
|
9 | export declare function highlightNodeForNode(node: ASTNode): ASTNode;
|
10 | export declare function getFieldDef(schema: GraphQLSchema, parentType: GraphQLCompositeType, fieldAST: FieldNode): GraphQLField<any, any> | undefined;
|
11 | export declare function removeDirectives<AST extends ASTNode>(ast: AST, directiveNames: string[]): AST;
|
12 | export declare function removeDirectiveAnnotatedFields<AST extends ASTNode>(ast: AST, directiveNames: string[]): AST;
|
13 | export declare function withTypenameFieldAddedWhereNeeded(ast: ASTNode): any;
|
14 | export declare function simpleCollectFields(context: ExecutionContext, selectionSet: SelectionSetNode, fields: Record<string, FieldNode[]>, visitedFragmentNames: Record<string, boolean>): Record<string, FieldNode[]>;
|
15 | export declare function hasClientDirective(node: FieldNode | InlineFragmentNode | FragmentDefinitionNode): boolean | undefined;
|
16 | export interface ClientSchemaInfo {
|
17 | localFields?: string[];
|
18 | }
|
19 | declare module "graphql/type/definition" {
|
20 | interface GraphQLScalarType {
|
21 | clientSchema?: ClientSchemaInfo;
|
22 | }
|
23 | interface GraphQLObjectType {
|
24 | clientSchema?: ClientSchemaInfo;
|
25 | }
|
26 | interface GraphQLInterfaceType {
|
27 | clientSchema?: ClientSchemaInfo;
|
28 | }
|
29 | interface GraphQLUnionType {
|
30 | clientSchema?: ClientSchemaInfo;
|
31 | }
|
32 | interface GraphQLEnumType {
|
33 | clientSchema?: ClientSchemaInfo;
|
34 | }
|
35 | }
|
36 |
|
\ | No newline at end of file |