From ac844bd1ba16ea89e03bd6b9bc5d31d9c52fc16d Mon Sep 17 00:00:00 2001 From: Niek Kruse Date: Mon, 28 Oct 2019 11:17:52 +0100 Subject: [PATCH] allow to set FetchResult generic type in MockedResponse --- packages/testing/src/mocks/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {