Skip to content

Commit e1726df

Browse files
authoredMar 23, 2022
GraphQLError: switch constructor overload order (#3514)
1 parent da57238 commit e1726df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/error/GraphQLError.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class GraphQLError extends Error {
111111
*/
112112
readonly extensions: GraphQLErrorExtensions;
113113

114+
constructor(message: string, args?: GraphQLErrorArgs);
114115
/**
115116
* @deprecated Please use the `GraphQLErrorArgs` constructor overload instead.
116117
*/
@@ -123,7 +124,6 @@ export class GraphQLError extends Error {
123124
originalError?: Maybe<Error & { readonly extensions?: unknown }>,
124125
extensions?: Maybe<GraphQLErrorExtensions>,
125126
);
126-
constructor(message: string, args?: GraphQLErrorArgs);
127127
constructor(message: string, ...rawArgs: BackwardsCompatibleArgs) {
128128
const { nodes, source, positions, path, originalError, extensions } =
129129
toNormalizedArgs(rawArgs);

0 commit comments

Comments
 (0)
Please sign in to comment.