Type 'void' is not assignable to type '{ user: Partial<User>; }' #7073
Unanswered
MananDesai54
asked this question in
Q&A
Replies: 2 comments 1 reply
-
show a typescript playground please |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Here
interface MutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TContext = unknown> {
the default type ofTVariables
is void it is wrong and not letting me to re-assign any other type like here{ user: Partial<User>; }
it should beunknown
Your minimal, reproducible example
Find for Type
MutationOptions
Steps to reproduce
Find for Type
MutationOptions
Expected behavior
default type for
TVariables
should beunknown
How often does this bug happen?
Everytime giving type for mutationFn variables type
Screenshots or Videos
Platform
Tanstack Query adapter
react-query
TanStack Query version
v5.25.0
TypeScript version
v5
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions