I want to achieve the following inference:
const query = useQuery({ action: fetchBooks, variables: [1, \'2\'], // inferred from fetchBooks argument types