1 | import { GraphQLSchema, GraphQLError, FragmentDefinitionNode } from "graphql";
|
2 | import { Diagnostic, DiagnosticSeverity } from "vscode-languageserver";
|
3 | import { GraphQLDocument } from "./document";
|
4 | import { DocumentUri } from "./project/base";
|
5 | import { ValidationRule } from "graphql/validation/ValidationContext";
|
6 | export declare function collectExecutableDefinitionDiagnositics(schema: GraphQLSchema, queryDocument: GraphQLDocument, fragments?: {
|
7 | [fragmentName: string]: FragmentDefinitionNode;
|
8 | }, rules?: ValidationRule[]): Diagnostic[];
|
9 | export declare function diagnosticsFromError(error: GraphQLError, severity: DiagnosticSeverity, type: string): GraphQLDiagnostic[];
|
10 | export interface GraphQLDiagnostic extends Diagnostic {
|
11 | error: GraphQLError;
|
12 | }
|
13 | export declare namespace GraphQLDiagnostic {
|
14 | function is(diagnostic: Diagnostic): diagnostic is GraphQLDiagnostic;
|
15 | }
|
16 | export declare class DiagnosticSet {
|
17 | private diagnosticsByFile;
|
18 | entries(): IterableIterator<[string, Diagnostic[]]>;
|
19 | addDiagnostics(uri: DocumentUri, diagnostics: Diagnostic[]): void;
|
20 | }
|
21 |
|
\ | No newline at end of file |