Skip to content

Commit

Permalink
feat(typescript): expose type property for errors in graphql respon…
Browse files Browse the repository at this point in the history
…se errors (#314)
  • Loading branch information
devversion committed Aug 31, 2021
1 parent ca195a8 commit ffa3428
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export type GraphQlQueryResponse<ResponseData> = {
data: ResponseData;
errors?: [
{
// https://github.com/octokit/graphql.js/pull/314
type: string;
message: string;
path: [string];
extensions: { [key: string]: any };
Expand Down

0 comments on commit ffa3428

Please sign in to comment.