From 085305e34acc541be02b727221f825b38006163f Mon Sep 17 00:00:00 2001 From: SophieDonut Date: Wed, 30 Oct 2019 15:59:25 +0100 Subject: [PATCH] Update onComplete handler typings Fixes #3546 --- packages/common/src/types/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/types/types.ts b/packages/common/src/types/types.ts index 5e5a25c0a3..581ddaba20 100644 --- a/packages/common/src/types/types.ts +++ b/packages/common/src/types/types.ts @@ -101,7 +101,7 @@ export interface BaseMutationOptions< client?: ApolloClient; notifyOnNetworkStatusChange?: boolean; context?: Context; - onCompleted?: (data: TData) => void; + onCompleted?: (data: TData | undefined) => void; onError?: (error: ApolloError) => void; fetchPolicy?: WatchQueryFetchPolicy; ignoreResults?: boolean;