UNPKG

@types/graphql

Version:

TypeScript definitions for graphql

14 lines (12 loc) 466 B
import { GraphQLError } from "./GraphQLError"; import { ASTNode } from "../language/ast"; /** * Given an arbitrary Error, presumably thrown while attempting to execute a * GraphQL operation, produce a new GraphQLError aware of the location in the * document responsible for the original Error. */ export function locatedError( originalError: Error | GraphQLError, nodes: ReadonlyArray<ASTNode>, path: ReadonlyArray<string | number> ): GraphQLError;