UNPKG

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