From dc1ea691f9916fc5774b73e3e17a349ace77bf1e Mon Sep 17 00:00:00 2001 From: Ed Staub Date: Tue, 27 Jun 2017 13:36:34 -0400 Subject: [PATCH] Update formatError.d.ts See e.g. the flow definition in https://github.com/graphql/graphql-js/blob/master/src/error/formatError.js, where they are defined as optional. I'm no GraphQL expert; caveat emptor. --- types/graphql/error/formatError.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/graphql/error/formatError.d.ts b/types/graphql/error/formatError.d.ts index 712c68c77b..5b974d5461 100644 --- a/types/graphql/error/formatError.d.ts +++ b/types/graphql/error/formatError.d.ts @@ -8,11 +8,11 @@ export function formatError(error: GraphQLError): GraphQLFormattedError; export type GraphQLFormattedError = { message: string, - locations: Array, - path: Array + locations?: Array, + path?: Array }; export type GraphQLErrorLocation = { line: number, column: number -}; \ No newline at end of file +};