syntaxError.d.ts 358 B

123456789101112
  1. import { Source } from '../language/source';
  2. import { 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. */
  7. export function syntaxError(
  8. source: Source,
  9. position: number,
  10. description: string,
  11. ): GraphQLError;