Replies: 1 comment
-
|
import { useMutation, type Exact, type Variables } from "@/gqty";
const [mutate, mutationStates] = useMutation(({ updateSomething }) => {
const foo = updateSomething(
data satisfies Exact<Variables<typeof updateSomething>>
);
return foo.id;
}); |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is there a way to get the typegen to wrap input object types in an Exact<>? It's not catching me passing unknown properties to mutation input objects - something I should be able to catch in the type system.
Thank you! :)
Beta Was this translation helpful? Give feedback.
All reactions