node_modules.apollo-codegen-core.lib.utilities.graphql.d.ts Maven / Gradle / Ivy
import { GraphQLNamedType, GraphQLCompositeType, GraphQLObjectType, GraphQLEnumValue, GraphQLError, GraphQLSchema, GraphQLType, GraphQLScalarType, ASTNode, Location, ValueNode, OperationDefinitionNode, FieldNode, GraphQLField, DocumentNode } from 'graphql';
declare module "graphql" {
function isNamedType(type: GraphQLType): type is GraphQLNamedType;
const specifiedScalarTypes: GraphQLScalarType[];
function isSpecifiedScalarType(type: GraphQLType): boolean;
const introspectionTypes: GraphQLNamedType[];
function isIntrospectionType(type: GraphQLType): boolean;
function validateSchema(schema: GraphQLSchema): GraphQLError[];
}
declare module "graphql/utilities/buildASTSchema" {
function buildASTSchema(ast: DocumentNode, options?: {
assumeValid?: boolean;
commentDescriptions?: boolean;
}): GraphQLSchema;
}
export declare function sortEnumValues(values: GraphQLEnumValue[]): GraphQLEnumValue[];
export declare function isList(type: GraphQLType): boolean;
export declare function isMetaFieldName(name: string): boolean;
export declare function withTypenameFieldAddedWhereNeeded(ast: ASTNode): any;
export declare function sourceAt(location: Location): string;
export declare function filePathForNode(node: ASTNode): string;
export declare function valueFromValueNode(valueNode: ValueNode): any | {
kind: 'Variable';
variableName: string;
};
export declare function isTypeProperSuperTypeOf(schema: GraphQLSchema, maybeSuperType: GraphQLCompositeType, subType: GraphQLCompositeType): boolean;
export declare function getOperationRootType(schema: GraphQLSchema, operation: OperationDefinitionNode): GraphQLObjectType;
export declare function getFieldDef(schema: GraphQLSchema, parentType: GraphQLCompositeType, fieldAST: FieldNode): GraphQLField | undefined;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy