You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using the orval codegen tooling which generates api calls. Unfortunately it's not typing a lot of the mutation (post) methods as they haven't been defined in the openapi spec.
as such they are typed as <void>. To get around this i want to type the hook where i'm using the useMutation
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im using the orval codegen tooling which generates api calls. Unfortunately it's not typing a lot of the mutation (post) methods as they haven't been defined in the openapi spec.
as such they are typed as
<void>
. To get around this i want to type the hook where i'm using the useMutationfixed. Passed in all 4 generics
Beta Was this translation helpful? Give feedback.
All reactions