Skip to content

Commit 64c0ed6

Browse files
TS: made GraphQLError constructor's second argument optional (#2625)
1 parent 7bf4daf commit 64c0ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/GraphQLError.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { SourceLocation } from '../language/location';
1313
export class GraphQLError extends Error {
1414
constructor(
1515
message: string,
16-
nodes?: ReadonlyArray<ASTNode> | ASTNode,
16+
nodes?: Maybe<ReadonlyArray<ASTNode> | ASTNode>,
1717
source?: Maybe<Source>,
1818
positions?: Maybe<ReadonlyArray<number>>,
1919
path?: Maybe<ReadonlyArray<string | number>>,

0 commit comments

Comments
 (0)