Skip to content

Commit

Permalink
fix: useQuery variables type
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Sep 21, 2020
1 parent 0725c19 commit b53e7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type QueryComposable = ReturnType<typeof _useQuery>;

function useQuery<TData = any, TVars = QueryVariables>(
opts: QueryCompositeOptions<TVars> | QueryCompositeOptions<TVars>['query'],
variables?: TVars
variables?: QueryCompositeOptions<TVars>['variables']
): QueryComposable {
const normalizedOpts = normalizeOptions(opts, variables);
const api = _useQuery<TData, TVars>(normalizedOpts);
Expand Down

0 comments on commit b53e7f2

Please sign in to comment.