From 0adc1ad0ffb8e8cfbce95b140d85e22a43906ee5 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Wed, 11 Sep 2019 16:10:07 +0200 Subject: [PATCH] Revert "Fix VariableFn type returns Object instead of V" (#764) This reverts commit faba67762d33915ca2904c0317748cf52962e2ef. --- types/options.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/options.d.ts b/types/options.d.ts index 60ed725..d4a4f09 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -16,7 +16,7 @@ type Diff = ({ [P in T]: P } & { [P in U type Omit = { [P in Diff]?: T[P] }; type ApolloVueThisType = V & { [key: string]: any }; -type VariableFn = ((this: ApolloVueThisType) => V) | V; +type VariableFn = ((this: ApolloVueThisType) => Object) | Object; type ApolloVueUpdateQueryFn = (this: ApolloVueThisType, previousQueryResult: { [key: string]: any }, options: { error: any, subscriptionData: { data: any; };