UNPKG

974 BTypeScriptView Raw
1import { FragmentSpreadNode, FragmentDefinitionNode, OperationDefinitionNode, NamedTypeNode } from 'graphql';
2import { Definition, FragmentInfo, Uri, ObjectTypeInfo } from 'graphql-language-service-types';
3import { Range } from 'graphql-language-service-utils';
4export declare type DefinitionQueryResult = {
5 queryRange: Range[];
6 definitions: Definition[];
7};
8export declare const LANGUAGE = "GraphQL";
9export declare function getDefinitionQueryResultForNamedType(text: string, node: NamedTypeNode, dependencies: Array<ObjectTypeInfo>): Promise<DefinitionQueryResult>;
10export declare function getDefinitionQueryResultForFragmentSpread(text: string, fragment: FragmentSpreadNode, dependencies: Array<FragmentInfo>): Promise<DefinitionQueryResult>;
11export declare function getDefinitionQueryResultForDefinitionNode(path: Uri, text: string, definition: FragmentDefinitionNode | OperationDefinitionNode): DefinitionQueryResult;
12//# sourceMappingURL=getDefinition.d.ts.map
\No newline at end of file