Skip to content

Commit

Permalink
types: Extended "enabled" option type (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsiotska authored Sep 12, 2023
1 parent ca0bd28 commit b0844ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface UseQueryOptions<
TVariables extends OperationVariables = OperationVariables
> extends Omit<WatchQueryOptions<TVariables>, 'query' | 'variables'> {
clientId?: string
enabled?: boolean
enabled?: boolean | Ref<boolean>
throttle?: number
debounce?: number
prefetch?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface UseSubscriptionOptions <
TVariables = OperationVariables
> extends Omit<SubscriptionOptions<TVariables>, 'query' | 'variables'> {
clientId?: string
enabled?: boolean
enabled?: boolean | Ref<boolean>
throttle?: number
debounce?: number
}
Expand Down

0 comments on commit b0844ac

Please sign in to comment.