From b53e7f21ee0f33bbdcd9ab75a6e28dfffca1c201 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Mon, 21 Sep 2020 13:37:43 +0200 Subject: [PATCH] fix: useQuery variables type --- src/useQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useQuery.ts b/src/useQuery.ts index 8e6ace9..ed37f5f 100644 --- a/src/useQuery.ts +++ b/src/useQuery.ts @@ -92,7 +92,7 @@ type QueryComposable = ReturnType; function useQuery( opts: QueryCompositeOptions | QueryCompositeOptions['query'], - variables?: TVars + variables?: QueryCompositeOptions['variables'] ): QueryComposable { const normalizedOpts = normalizeOptions(opts, variables); const api = _useQuery(normalizedOpts);