SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 0 TypeScript

fix(types): make TVariables default to unknown on Mutation (#7433)

* fix: make TVariables default to unknown on Mutation

we only need `void` as the default for MutationOptions so that we can fire mutations with no parameters without passing undefined to them explicitly. For reading mutations and mutationState, unknown is better.

* refactor: remove unnecessary type assertion

* refactor: remove unnecessary type assertion

* refactor: some more remove unnecessary type assertion
D
Dominik Dorfmeister committed
c2861c44fbedad03fd8a1c2a907888e72f219d2d
Parent: 3a9e046
Committed by GitHub <noreply@github.com> on 5/15/2024, 2:19:45 PM