From b0bf0d80ed0b1a2c3014b35286813915605c0ec7 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 14 Nov 2023 14:43:50 +0100 Subject: [PATCH] fix up type in 3.9 branch after merge (#11362) --- .api-reports/api-report-testing.md | 4 ++-- .api-reports/api-report-testing_core.md | 2 +- src/testing/core/mocking/mockLink.ts | 2 +- src/testing/react/MockedProvider.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.api-reports/api-report-testing.md b/.api-reports/api-report-testing.md index 7367367ab39..c65ea55027e 100644 --- a/.api-reports/api-report-testing.md +++ b/.api-reports/api-report-testing.md @@ -880,7 +880,7 @@ export interface MockedProviderProps { // (undocumented) link?: ApolloLink; // (undocumented) - mocks?: ReadonlyArray; + mocks?: ReadonlyArray>; // (undocumented) resolvers?: Resolvers; // (undocumented) @@ -925,7 +925,7 @@ interface MockedSubscriptionResult { // @public (undocumented) export class MockLink extends ApolloLink { - constructor(mockedResponses: ReadonlyArray, addTypename?: Boolean, options?: MockLinkOptions); + constructor(mockedResponses: ReadonlyArray>, addTypename?: Boolean, options?: MockLinkOptions); // (undocumented) addMockedResponse(mockedResponse: MockedResponse): void; // (undocumented) diff --git a/.api-reports/api-report-testing_core.md b/.api-reports/api-report-testing_core.md index a8494f44a28..5aaef2383c6 100644 --- a/.api-reports/api-report-testing_core.md +++ b/.api-reports/api-report-testing_core.md @@ -879,7 +879,7 @@ interface MockedSubscriptionResult { // @public (undocumented) export class MockLink extends ApolloLink { - constructor(mockedResponses: ReadonlyArray, addTypename?: Boolean, options?: MockLinkOptions); + constructor(mockedResponses: ReadonlyArray>, addTypename?: Boolean, options?: MockLinkOptions); // (undocumented) addMockedResponse(mockedResponse: MockedResponse): void; // (undocumented) diff --git a/src/testing/core/mocking/mockLink.ts b/src/testing/core/mocking/mockLink.ts index 7c48201eb73..723a78d5c4c 100644 --- a/src/testing/core/mocking/mockLink.ts +++ b/src/testing/core/mocking/mockLink.ts @@ -57,7 +57,7 @@ export class MockLink extends ApolloLink { private mockedResponsesByKey: { [key: string]: MockedResponse[] } = {}; constructor( - mockedResponses: ReadonlyArray, + mockedResponses: ReadonlyArray>, addTypename: Boolean = true, options: MockLinkOptions = Object.create(null) ) { diff --git a/src/testing/react/MockedProvider.tsx b/src/testing/react/MockedProvider.tsx index b7afb9d416c..bd70d34ccd1 100644 --- a/src/testing/react/MockedProvider.tsx +++ b/src/testing/react/MockedProvider.tsx @@ -11,7 +11,7 @@ import type { Resolvers } from "../../core/index.js"; import type { ApolloCache } from "../../cache/index.js"; export interface MockedProviderProps { - mocks?: ReadonlyArray; + mocks?: ReadonlyArray>; addTypename?: boolean; defaultOptions?: DefaultOptions; cache?: ApolloCache;