syntaxError.d.ts 359 B

12345678910111213
  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;