Merge pull request #17540 from estaub/patch-2

graphql: GraphQLFormattedError: locations, path opt'nl
This commit is contained in:
Paul van Brenk
2017-06-27 13:20:08 -07:00
committed by GitHub
+3 -3
View File
@@ -8,11 +8,11 @@ export function formatError(error: GraphQLError): GraphQLFormattedError;
export type GraphQLFormattedError = {
message: string,
locations: Array<GraphQLErrorLocation>,
path: Array<string | number>
locations?: Array<GraphQLErrorLocation>,
path?: Array<string | number>
};
export type GraphQLErrorLocation = {
line: number,
column: number
};
};