From fb2f23942d1cd3e008255394bcbe6710c7c223ad Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 6 Apr 2018 00:49:39 +0300 Subject: [PATCH] locatedError: correct definition to pass Flow 0.68 check (#1292) --- src/error/locatedError.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/error/locatedError.js b/src/error/locatedError.js index 8e7adf4b1f..0f49516f09 100644 --- a/src/error/locatedError.js +++ b/src/error/locatedError.js @@ -16,13 +16,12 @@ import type { ASTNode } from '../language/ast'; * document responsible for the original Error. */ export function locatedError( - originalError: Error, + originalError: Error | GraphQLError, nodes: $ReadOnlyArray, path: $ReadOnlyArray, ): GraphQLError { // Note: this uses a brand-check to support GraphQL errors originating from // other contexts. - // $FlowFixMe(>=0.68.0) if (originalError && Array.isArray(originalError.path)) { return (originalError: any); }