Skip to content

Commit

Permalink
fix up type in 3.9 branch after merge (#11362)
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Nov 14, 2023
1 parent 981a06f commit b0bf0d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .api-reports/api-report-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export interface MockedProviderProps<TSerializedCache = {}> {
// (undocumented)
link?: ApolloLink;
// (undocumented)
mocks?: ReadonlyArray<MockedResponse>;
mocks?: ReadonlyArray<MockedResponse<any, any>>;
// (undocumented)
resolvers?: Resolvers;
// (undocumented)
Expand Down Expand Up @@ -925,7 +925,7 @@ interface MockedSubscriptionResult {

// @public (undocumented)
export class MockLink extends ApolloLink {
constructor(mockedResponses: ReadonlyArray<MockedResponse>, addTypename?: Boolean, options?: MockLinkOptions);
constructor(mockedResponses: ReadonlyArray<MockedResponse<any, any>>, addTypename?: Boolean, options?: MockLinkOptions);
// (undocumented)
addMockedResponse(mockedResponse: MockedResponse): void;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion .api-reports/api-report-testing_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ interface MockedSubscriptionResult {

// @public (undocumented)
export class MockLink extends ApolloLink {
constructor(mockedResponses: ReadonlyArray<MockedResponse>, addTypename?: Boolean, options?: MockLinkOptions);
constructor(mockedResponses: ReadonlyArray<MockedResponse<any, any>>, addTypename?: Boolean, options?: MockLinkOptions);
// (undocumented)
addMockedResponse(mockedResponse: MockedResponse): void;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion src/testing/core/mocking/mockLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class MockLink extends ApolloLink {
private mockedResponsesByKey: { [key: string]: MockedResponse[] } = {};

constructor(
mockedResponses: ReadonlyArray<MockedResponse>,
mockedResponses: ReadonlyArray<MockedResponse<any, any>>,
addTypename: Boolean = true,
options: MockLinkOptions = Object.create(null)
) {
Expand Down
2 changes: 1 addition & 1 deletion src/testing/react/MockedProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { Resolvers } from "../../core/index.js";
import type { ApolloCache } from "../../cache/index.js";

export interface MockedProviderProps<TSerializedCache = {}> {
mocks?: ReadonlyArray<MockedResponse>;
mocks?: ReadonlyArray<MockedResponse<any, any>>;
addTypename?: boolean;
defaultOptions?: DefaultOptions;
cache?: ApolloCache<TSerializedCache>;
Expand Down

0 comments on commit b0bf0d8

Please sign in to comment.