From 85e8de09d4a5a31d1b034deba7aefc3ba8a2b2d9 Mon Sep 17 00:00:00 2001 From: tsiotska Date: Mon, 17 Jul 2023 01:08:13 +0300 Subject: [PATCH] extended enabled type --- packages/vue-apollo-composable/src/useQuery.ts | 2 +- packages/vue-apollo-composable/src/useSubscription.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-apollo-composable/src/useQuery.ts b/packages/vue-apollo-composable/src/useQuery.ts index 915f3cb3..5d47f3a1 100644 --- a/packages/vue-apollo-composable/src/useQuery.ts +++ b/packages/vue-apollo-composable/src/useQuery.ts @@ -40,7 +40,7 @@ export interface UseQueryOptions< TVariables extends OperationVariables = OperationVariables > extends Omit, 'query' | 'variables'> { clientId?: string - enabled?: boolean + enabled?: boolean | Ref throttle?: number debounce?: number prefetch?: boolean diff --git a/packages/vue-apollo-composable/src/useSubscription.ts b/packages/vue-apollo-composable/src/useSubscription.ts index e5738ce6..b404c306 100644 --- a/packages/vue-apollo-composable/src/useSubscription.ts +++ b/packages/vue-apollo-composable/src/useSubscription.ts @@ -35,7 +35,7 @@ export interface UseSubscriptionOptions < TVariables = OperationVariables > extends Omit, 'query' | 'variables'> { clientId?: string - enabled?: boolean + enabled?: boolean | Ref throttle?: number debounce?: number }