Skip to content

Commit b0844ac

Browse files
authored
types: Extended "enabled" option type (#1492)
1 parent ca0bd28 commit b0844ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vue-apollo-composable/src/useQuery.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface UseQueryOptions<
4040
TVariables extends OperationVariables = OperationVariables
4141
> extends Omit<WatchQueryOptions<TVariables>, 'query' | 'variables'> {
4242
clientId?: string
43-
enabled?: boolean
43+
enabled?: boolean | Ref<boolean>
4444
throttle?: number
4545
debounce?: number
4646
prefetch?: boolean

packages/vue-apollo-composable/src/useSubscription.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface UseSubscriptionOptions <
3535
TVariables = OperationVariables
3636
> extends Omit<SubscriptionOptions<TVariables>, 'query' | 'variables'> {
3737
clientId?: string
38-
enabled?: boolean
38+
enabled?: boolean | Ref<boolean>
3939
throttle?: number
4040
debounce?: number
4141
}

0 commit comments

Comments
 (0)