Skip to content

Commit

Permalink
chore(ts): avoid any type
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen-byte committed Oct 23, 2024
1 parent e3c673b commit 8e25401
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/apollo-angular/testing/tests/operation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloLink, execute, gql } from '@apollo/client/core';
import { ApolloLink, execute, FetchResult, gql } from '@apollo/client/core';
import { ApolloTestingBackend } from '../src/backend';
import { buildOperationForLink } from './utils';

Expand Down Expand Up @@ -62,10 +62,10 @@ describe('TestOperation', () => {

test('should close the operation except for subscription', done => {
const operation = buildOperationForLink(testSubscription, {});
const emittedResults: any[] = [];
const emittedResults: FetchResult[] = [];

execute(link, operation as any).subscribe({
next(result: any) {
execute(link, operation).subscribe({
next(result) {
emittedResults.push(result);
},
complete() {
Expand Down

0 comments on commit 8e25401

Please sign in to comment.