Skip to content

Commit a5e0b64

Browse files
CitoIvanGoncharov
authored andcommitted
Make onError optional in SDLValidationContext (#2169)
1 parent 38bd337 commit a5e0b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/validation/ValidationContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class SDLValidationContext extends ASTValidationContext {
149149
constructor(
150150
ast: DocumentNode,
151151
schema: ?GraphQLSchema,
152-
onError: (err: GraphQLError) => void,
152+
onError?: (err: GraphQLError) => void,
153153
): void {
154154
super(ast, onError);
155155
this._schema = schema;

0 commit comments

Comments
 (0)