UNPKG

370 BTypeScriptView Raw
1import type { Source } from '../language/source';
2import { GraphQLError } from './GraphQLError';
3/**
4 * Produces a GraphQLError representing a syntax error, containing useful
5 * descriptive information about the syntax error's position in the source.
6 */
7export declare function syntaxError(
8 source: Source,
9 position: number,
10 description: string,
11): GraphQLError;