1 | import { FieldNode, ValidationContext, GraphQLSchema, DocumentNode, OperationDefinitionNode, FragmentDefinitionNode, InlineFragmentNode } from "graphql";
|
2 | import { TextEdit } from "vscode-languageserver";
|
3 | import { ValidationRule } from "graphql/validation/ValidationContext";
|
4 | export interface CodeActionInfo {
|
5 | message: string;
|
6 | edits: TextEdit[];
|
7 | }
|
8 | export declare const defaultValidationRules: ValidationRule[];
|
9 | export declare function getValidationErrors(schema: GraphQLSchema, document: DocumentNode, fragments?: {
|
10 | [fragmentName: string]: FragmentDefinitionNode;
|
11 | }, rules?: ValidationRule[]): any;
|
12 | export declare function validateQueryDocument(schema: GraphQLSchema, document: DocumentNode): void;
|
13 | export declare function NoAnonymousQueries(context: ValidationContext): {
|
14 | OperationDefinition(node: OperationDefinitionNode): boolean;
|
15 | };
|
16 | export declare function NoTypenameAlias(context: ValidationContext): {
|
17 | Field(node: FieldNode): void;
|
18 | };
|
19 | export declare function NoMissingClientDirectives(context: ValidationContext): {
|
20 | InlineFragment?: undefined;
|
21 | FragmentDefinition?: undefined;
|
22 | Field?: undefined;
|
23 | } | {
|
24 | InlineFragment: (node: FieldNode | InlineFragmentNode | FragmentDefinitionNode) => false | undefined;
|
25 | FragmentDefinition: (node: FieldNode | InlineFragmentNode | FragmentDefinitionNode) => false | undefined;
|
26 | Field: (node: FieldNode | InlineFragmentNode | FragmentDefinitionNode) => false | undefined;
|
27 | };
|
28 |
|
\ | No newline at end of file |