Sha256: 874f76ad6832abf60adf38c2eb93d79e47b8e93a5f13e66ef18968a192545bac
Contents?: true
Size: 378 Bytes
Versions: 26
Compression:
Stored size: 378 Bytes
Contents
import { GraphQLError } from './GraphQLError.mjs'; /** * Produces a GraphQLError representing a syntax error, containing useful * descriptive information about the syntax error's position in the source. */ export function syntaxError(source, position, description) { return new GraphQLError(`Syntax Error: ${description}`, { source, positions: [position], }); }
Version data entries
26 entries across 26 versions & 1 rubygems