-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronise
*.d.ts
with sources converted to TS (#3132)
- Loading branch information
1 parent
5e062ea
commit 544fe7b
Showing
58 changed files
with
671 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { GraphQLError, printError } from './GraphQLError'; | ||
export { syntaxError } from './syntaxError'; | ||
export { locatedError } from './locatedError'; | ||
export { formatError, GraphQLFormattedError } from './formatError'; | ||
export { formatError } from './formatError'; | ||
export type { GraphQLFormattedError } from './formatError'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import type { Maybe } from '../jsutils/Maybe'; | ||
import type { ASTNode } from '../language/ast'; | ||
import type { GraphQLError } from './GraphQLError'; | ||
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 function locatedError( | ||
rawOriginalError: unknown, | ||
nodes: ASTNode | ReadonlyArray<ASTNode> | undefined, | ||
nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null, | ||
path?: Maybe<ReadonlyArray<string | number>>, | ||
): GraphQLError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.