export function useSomeHook({
useMutationOptions
}: {
useMutationOptions?: what should go here?
}) {
const trpc = useTRPC()
const result = useMutation(
// Infer the type that goes in mutationOptions
trpc.someProcedure.mutationOptions({...useMutationOptions})
)
return result
}