fix(types): revert to ThisType

This commit is contained in:
Guillaume Chau
2019-09-19 19:30:27 +02:00
parent 54079a2bfe
commit 1ddcfe83d4
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ interface PrivateVueApolloComponentOptions
VueApolloComponentSpecialOptions[keyof VueApolloComponentSpecialOptions]
}
export type VueApolloComponentOptions<Instance> = DeepApplyThisType<PrivateVueApolloComponentOptions, Instance>
// https://github.com/microsoft/TypeScript/issues/33392
// export type VueApolloComponentOptions<Instance> = DeepApplyThisType<PrivateVueApolloComponentOptions, Instance>
export type VueApolloComponentOptions<Instance> = PrivateVueApolloComponentOptions & ThisType<Instance>
/* Special component options */
+1 -1
View File
@@ -76,6 +76,6 @@ export interface DollarApollo<V> extends ApolloClientMethods {
getClient<R = any>(): ApolloClient<R>
addSmartQuery<R = any>(key: string, options: VueApolloQueryDefinition<V, R>): SmartQuery<V>
addSmartQuery<R = any>(key: string, options: VueApolloQueryDefinition<R>): SmartQuery<V>
addSmartSubscription<R = any>(key: string, options: VueApolloSubscriptionDefinition): SmartSubscription<V>
}