types: Extended "enabled" option type (#1492)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user