syntaxError.d.ts 370 B

1234567891011
  1. import type { 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 declare function syntaxError(
  8. source: Source,
  9. position: number,
  10. description: string,
  11. ): GraphQLError;