mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
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.
This commit is contained in:
Vendored
+3
-3
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user