diff options
Diffstat (limited to 'alarm/node_modules/graphql/error/syntaxError.js.flow')
-rw-r--r-- | alarm/node_modules/graphql/error/syntaxError.js.flow | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/alarm/node_modules/graphql/error/syntaxError.js.flow b/alarm/node_modules/graphql/error/syntaxError.js.flow deleted file mode 100644 index cdddcc3..0000000 --- a/alarm/node_modules/graphql/error/syntaxError.js.flow +++ /dev/null @@ -1,18 +0,0 @@ -// @flow strict -import type { Source } from '../language/source'; - -import { GraphQLError } from './GraphQLError'; - -/** - * Produces a GraphQLError representing a syntax error, containing useful - * descriptive information about the syntax error's position in the source. - */ -export function syntaxError( - source: Source, - position: number, - description: string, -): GraphQLError { - return new GraphQLError(`Syntax Error: ${description}`, undefined, source, [ - position, - ]); -} |