From 5f8e795d788929f605f830cdb68abdc0f984145f Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sat, 14 Sep 2019 18:43:08 +0200 Subject: [PATCH] Make onError optional in SDLValidationContext --- src/validation/ValidationContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation/ValidationContext.js b/src/validation/ValidationContext.js index a3a7bd0f08..19e3bd604d 100644 --- a/src/validation/ValidationContext.js +++ b/src/validation/ValidationContext.js @@ -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;