mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
531 B
TypeScript
17 lines
531 B
TypeScript
|
import Maybe from '../tsutils/Maybe';
|
||
|
|
||
|
import { ASTNode } from '../language/ast';
|
||
|
|
||
|
import { GraphQLError } from './GraphQLError';
|
||
|
|
||
|
/**
|
||
|
* 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: ASTNode | ReadonlyArray<ASTNode> | undefined,
|
||
|
path?: Maybe<ReadonlyArray<string | number>>,
|
||
|
): GraphQLError;
|