UNPKG

984 BTypeScriptView Raw
1import { GraphQLInputType, GraphQLOutputType, GraphQLNamedType, KindEnum, GraphQLSchema, GraphQLError, DocumentNode, FieldNode } from 'graphql';
2export declare function safeChangeForField(oldType: GraphQLOutputType, newType: GraphQLOutputType): boolean;
3export declare function safeChangeForInputValue(oldType: GraphQLInputType, newType: GraphQLInputType): boolean;
4export declare function getKind(type: GraphQLNamedType): KindEnum;
5export declare function getTypePrefix(type: GraphQLNamedType): string;
6export declare function isPrimitive(type: GraphQLNamedType | string): boolean;
7export declare function isForIntrospection(type: GraphQLNamedType | string): boolean;
8export declare function findDeprecatedUsages(schema: GraphQLSchema, ast: DocumentNode): Array<GraphQLError>;
9export declare function removeFieldIfDirectives(node: FieldNode, directiveNames: string[]): FieldNode | null;
10export declare function removeDirectives(node: FieldNode, directiveNames: string[]): FieldNode;