Revert "Fix VariableFn<V> type returns Object instead of V" (#764)

This reverts commit faba67762d.
This commit is contained in:
Guillaume Chau
2019-09-11 16:10:07 +02:00
committed by GitHub
parent 0868396c3f
commit 0adc1ad0ff
+1 -1
View File
@@ -16,7 +16,7 @@ type Diff<T extends Property, U extends Property> = ({ [P in T]: P } & { [P in U
type Omit<T, K extends keyof T> = { [P in Diff<keyof T, K>]?: T[P] };
type ApolloVueThisType<V> = V & { [key: string]: any };
type VariableFn<V> = ((this: ApolloVueThisType<V>) => V) | V;
type VariableFn<V> = ((this: ApolloVueThisType<V>) => Object) | Object;
type ApolloVueUpdateQueryFn<V> = (this: ApolloVueThisType<V>, previousQueryResult: { [key: string]: any }, options: {
error: any,
subscriptionData: { data: any; };