@@ -9,12 +9,12 @@ import { disableExperimentalFragmentVariables } from 'graphql-tag';
99import { disableFragmentWarnings } from ' graphql-tag' ;
1010import type { DocumentNode } from ' graphql' ;
1111import { enableExperimentalFragmentVariables } from ' graphql-tag' ;
12- import type { ExecutionResult } from ' graphql' ;
1312import type { FieldNode } from ' graphql' ;
13+ import type { FormattedExecutionResult } from ' graphql' ;
1414import type { FragmentDefinitionNode } from ' graphql' ;
1515import { gql } from ' graphql-tag' ;
16- import type { GraphQLError } from ' graphql' ;
1716import type { GraphQLErrorExtensions } from ' graphql' ;
17+ import type { GraphQLFormattedError } from ' graphql' ;
1818import type { InlineFragmentNode } from ' graphql' ;
1919import { InvariantError } from ' ts-invariant' ;
2020import { Observable } from ' zen-observable-ts' ;
@@ -94,7 +94,7 @@ export class ApolloClient<TCacheShape> implements DataProxy {
9494 __actionHookForDevTools(cb : () => any ): void ;
9595 constructor (options : ApolloClientOptions <TCacheShape >);
9696 // (undocumented)
97- __requestRaw(payload : GraphQLRequest ): Observable <ExecutionResult >;
97+ __requestRaw(payload : GraphQLRequest ): Observable <FormattedExecutionResult >;
9898 addResolvers(resolvers : Resolvers | Resolvers []): void ;
9999 // (undocumented)
100100 cache: ApolloCache <TCacheShape >;
@@ -179,17 +179,15 @@ export class ApolloError extends Error {
179179 // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts
180180 constructor ({ graphQLErrors , protocolErrors , clientErrors , networkError , errorMessage , extraInfo , }: ApolloErrorOptions );
181181 cause: ({
182- message: string ;
183- extensions? : GraphQLErrorExtensions [];
184- } & Partial <Error >) | null ;
182+ readonly message: string ;
183+ extensions? : GraphQLErrorExtensions [] | GraphQLFormattedError [ " extensions " ] ;
184+ } & Omit < Partial <Error > & Partial < GraphQLFormattedError >, " extensions " >) | null ;
185185 // (undocumented)
186186 clientErrors: ReadonlyArray <Error >;
187187 // (undocumented)
188188 extraInfo: any ;
189- // Warning: (ae-forgotten-export) The symbol "GraphQLErrors" needs to be exported by the entry point index.d.ts
190- //
191189 // (undocumented)
192- graphQLErrors: GraphQLErrors ;
190+ graphQLErrors: ReadonlyArray < GraphQLFormattedError > ;
193191 // (undocumented)
194192 message: string ;
195193 // (undocumented)
@@ -212,7 +210,7 @@ interface ApolloErrorOptions {
212210 // (undocumented)
213211 extraInfo? : any ;
214212 // (undocumented)
215- graphQLErrors? : ReadonlyArray <GraphQLError >;
213+ graphQLErrors? : ReadonlyArray <GraphQLFormattedError >;
216214 // (undocumented)
217215 networkError? : Error | ServerParseError | ServerError | null ;
218216 // (undocumented)
@@ -266,7 +264,7 @@ export interface ApolloQueryResult<T> {
266264 // (undocumented)
267265 data: T ;
268266 error? : ApolloError ;
269- errors? : ReadonlyArray <GraphQLError >;
267+ errors? : ReadonlyArray <GraphQLFormattedError >;
270268 // (undocumented)
271269 loading: boolean ;
272270 // (undocumented)
@@ -776,7 +774,7 @@ export interface ExecutionPatchInitialResult<TData = Record<string, any>, TExten
776774 // (undocumented)
777775 data: TData | null | undefined ;
778776 // (undocumented)
779- errors? : ReadonlyArray <GraphQLError >;
777+ errors? : ReadonlyArray <GraphQLFormattedError >;
780778 // (undocumented)
781779 extensions? : TExtensions ;
782780 // (undocumented)
@@ -993,9 +991,6 @@ const getInMemoryCacheMemoryInternals: (() => {
993991
994992export { gql }
995993
996- // @public (undocumented)
997- type GraphQLErrors = ReadonlyArray <GraphQLError >;
998-
999994// @public (undocumented)
1000995export interface GraphQLRequest <TVariables = Record <string , any >> {
1001996 // (undocumented)
@@ -1080,7 +1075,7 @@ export interface IncrementalPayload<TData, TExtensions> {
10801075 // (undocumented)
10811076 data: TData | null ;
10821077 // (undocumented)
1083- errors? : ReadonlyArray <GraphQLError >;
1078+ errors? : ReadonlyArray <GraphQLFormattedError >;
10841079 // (undocumented)
10851080 extensions? : TExtensions ;
10861081 // (undocumented)
@@ -1712,7 +1707,7 @@ class QueryInfo {
17121707 // (undocumented)
17131708 getDiff(): Cache_2 .DiffResult <any >;
17141709 // (undocumented)
1715- graphQLErrors? : ReadonlyArray <GraphQLError >;
1710+ graphQLErrors? : ReadonlyArray <GraphQLFormattedError >;
17161711 // (undocumented)
17171712 init(query : {
17181713 document: DocumentNode ;
@@ -2089,11 +2084,15 @@ interface SharedWatchQueryOptions<TVariables extends OperationVariables, TData>
20892084}
20902085
20912086// @public (undocumented)
2092- export interface SingleExecutionResult <TData = Record <string , any >, TContext = DefaultContext , TExtensions = Record <string , any >> extends ExecutionResult < TData , TExtensions > {
2087+ export interface SingleExecutionResult <TData = Record <string , any >, TContext = DefaultContext , TExtensions = Record <string , any >> {
20932088 // (undocumented)
20942089 context? : TContext ;
20952090 // (undocumented)
20962091 data? : TData | null ;
2092+ // (undocumented)
2093+ errors? : ReadonlyArray <GraphQLFormattedError >;
2094+ // (undocumented)
2095+ extensions? : TExtensions ;
20972096}
20982097
20992098// @public (undocumented)
0 commit comments