diff --git a/.changeset/stale-penguins-remember.md b/.changeset/stale-penguins-remember.md new file mode 100644 index 000000000..9252febf6 --- /dev/null +++ b/.changeset/stale-penguins-remember.md @@ -0,0 +1,5 @@ +--- +'apollo-angular': patch +--- + +`FormattedExecutionResult` instead of `ExecutionResult` diff --git a/packages/apollo-angular/testing/src/operation.ts b/packages/apollo-angular/testing/src/operation.ts index 75b3c33d5..4be45d4e0 100644 --- a/packages/apollo-angular/testing/src/operation.ts +++ b/packages/apollo-angular/testing/src/operation.ts @@ -1,4 +1,4 @@ -import { ExecutionResult, GraphQLError, Kind, OperationTypeNode } from 'graphql'; +import { FormattedExecutionResult, GraphQLError, Kind, OperationTypeNode } from 'graphql'; import { Observer } from 'rxjs'; import { ApolloError, FetchResult, Operation as LinkOperation } from '@apollo/client/core'; import { getMainDefinition } from '@apollo/client/utilities'; @@ -15,7 +15,7 @@ export class TestOperation { private readonly observer: Observer>, ) {} - public flush(result: ExecutionResult | ApolloError): void { + public flush(result: FormattedExecutionResult | ApolloError): void { if (isApolloError(result)) { this.observer.error(result); } else {