Skip to content

Commit

Permalink
Update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoomBringer authored Aug 30, 2022
1 parent ae84674 commit bf40034
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ export type OperationVariables = Record<string, any>;
export type ApolloQueryResult<T> = {
data: T;
/**
* A list of all the GraphQLErrors that may have occured in a resposne.
* A list of all the GraphQLErrors that may have occured in a response.
*/
errors?: ReadonlyArray<GraphQLError>;
/**
* The single Error object that is passed to onError, useQuery hooks, etc. This will contain both NetworkErrors and GraphQLErrors.
* The single Error object that is passed to onError, useQuery hooks, etc. This will contain both a NetworkError and any GraphQLErrors.
* See https://www.apollographql.com/docs/react/data/error-handling/ for more information.
*/
error?: ApolloError;
loading: boolean;
Expand Down

0 comments on commit bf40034

Please sign in to comment.