diff --git a/packages/testing/src/mocks/types.ts b/packages/testing/src/mocks/types.ts index d681a477bb..57b16a3d56 100644 --- a/packages/testing/src/mocks/types.ts +++ b/packages/testing/src/mocks/types.ts @@ -5,12 +5,12 @@ import { ApolloLink } from 'apollo-link'; export type ResultFunction = () => T; -export interface MockedResponse { +export interface MockedResponse { request: GraphQLRequest; - result?: FetchResult | ResultFunction; + result?: FetchResult | ResultFunction>; error?: Error; delay?: number; - newData?: ResultFunction; + newData?: ResultFunction>; } export interface MockedSubscriptionResult {