Skip to content

Commit

Permalink
Make onError optional in SDLValidationContext (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored and IvanGoncharov committed Sep 14, 2019
1 parent 38bd337 commit a5e0b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation/ValidationContext.js
Expand Up @@ -149,7 +149,7 @@ export class SDLValidationContext extends ASTValidationContext {
constructor(
ast: DocumentNode,
schema: ?GraphQLSchema,
onError: (err: GraphQLError) => void,
onError?: (err: GraphQLError) => void,
): void {
super(ast, onError);
this._schema = schema;
Expand Down

0 comments on commit a5e0b64

Please sign in to comment.