Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
14 lines
547 B
TypeScript
14 lines
547 B
TypeScript
import type { Maybe } from '../jsutils/Maybe';
|
|
import type { ASTNode } from '../language/ast';
|
|
import { GraphQLError } from './GraphQLError';
|
|
/**
|
|
* 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;
|