Skip to content

Commit f8b9bbd

Browse files
committed
Add missing types for throttle and debounce in query options
See vuejs/apollo#335
1 parent 656eef7 commit f8b9bbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/query.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export interface VueApolloQueryDefinitionPatched<TComponent extends Vue = Vue, T
3939
| SubscribeToMoreOptionsPatched<TComponent, TResult, TVariables>
4040
| Array<SubscribeToMoreOptionsPatched<TComponent, TResult, TVariables>>;
4141
loadingKey?: keyof TComponent;
42+
43+
// added here pending upstream fix for missing types https://github.com/vuejs/vue-apollo/pull/1257
44+
throttle?: number;
45+
debounce?: number;
4246
}
4347

4448
export type VueApolloSmartQueryErrorHandler<

0 commit comments

Comments
 (0)