UNPKG

480 BTypeScriptView Raw
1import { Source, DocumentNode } from "graphql";
2import { TextDocument, Position, Diagnostic } from "vscode-languageserver";
3export declare class GraphQLDocument {
4 source: Source;
5 ast?: DocumentNode;
6 syntaxErrors: Diagnostic[];
7 constructor(source: Source);
8 containsPosition(position: Position): boolean;
9}
10export declare function extractGraphQLDocuments(document: TextDocument, tagName?: string): GraphQLDocument[] | null;
11//# sourceMappingURL=document.d.ts.map
\No newline at end of file