diff --git a/src/cli/commands/Generate.ts b/src/cli/commands/Generate.ts index ce3a728..9c47891 100644 --- a/src/cli/commands/Generate.ts +++ b/src/cli/commands/Generate.ts @@ -149,7 +149,7 @@ export async function generate(options: Generate = {}) { isTypeScript ? `: { mutation?: UseMutationOptions | undefined - }` + } = {}` : '' }) { return useMutation({ ...mutation, mutationKey: ['${namespaceName}.${functionName}'], mutationFn: (args)=> action(args) })