@graphql-tools/graphql
Version:
Fork of GraphQL.js
10 lines (9 loc) • 550 B
text/typescript
import type { Maybe } from '../jsutils/Maybe.cjs';
import type { ASTNode } from '../language/ast.cjs';
import { GraphQLError } from './GraphQLError.cjs';
/**
* Given an arbitrary value, 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 declare function locatedError(rawOriginalError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null, path?: Maybe<ReadonlyArray<string | number>>): GraphQLError;