Skip to content

Commit 1ddcfe8

Browse files
author
Guillaume Chau
committed
fix(types): revert to ThisType
1 parent 54079a2 commit 1ddcfe8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

types/options.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ interface PrivateVueApolloComponentOptions
3939
VueApolloComponentSpecialOptions[keyof VueApolloComponentSpecialOptions]
4040
}
4141

42-
export type VueApolloComponentOptions<Instance> = DeepApplyThisType<PrivateVueApolloComponentOptions, Instance>
42+
// https://github.com/microsoft/TypeScript/issues/33392
43+
// export type VueApolloComponentOptions<Instance> = DeepApplyThisType<PrivateVueApolloComponentOptions, Instance>
44+
export type VueApolloComponentOptions<Instance> = PrivateVueApolloComponentOptions & ThisType<Instance>
4345

4446
/* Special component options */
4547

types/vue-apollo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ export interface DollarApollo<V> extends ApolloClientMethods {
7676

7777
getClient<R = any>(): ApolloClient<R>
7878

79-
addSmartQuery<R = any>(key: string, options: VueApolloQueryDefinition<V, R>): SmartQuery<V>
79+
addSmartQuery<R = any>(key: string, options: VueApolloQueryDefinition<R>): SmartQuery<V>
8080
addSmartSubscription<R = any>(key: string, options: VueApolloSubscriptionDefinition): SmartSubscription<V>
8181
}

0 commit comments

Comments
 (0)