Skip to content

Commit 8aea0c9

Browse files
GraphQLError: revert originalError to be nullable (#3341)
1 parent c7ab7eb commit 8aea0c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error/GraphQLError.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class GraphQLError extends Error {
7676
/**
7777
* The original error thrown from a field resolver during execution.
7878
*/
79-
readonly originalError: Error | undefined;
79+
readonly originalError: Error | undefined | null;
8080

8181
/**
8282
* Extension fields to add to the formatted error.

src/error/GraphQLError.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class GraphQLError extends Error {
5656
/**
5757
* The original error thrown from a field resolver during execution.
5858
*/
59-
+originalError: Error | void;
59+
+originalError: Error | void | null;
6060

6161
/**
6262
* Extension fields to add to the formatted error.

0 commit comments

Comments
 (0)