Skip to content

Commit 7a1facd

Browse files
committed
fix: double hook type mutation cli
1 parent 3312d85 commit 7a1facd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cli/Commands/Generate.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function generate(options: Generate = {}) {
139139
: "import { useMutation } from '@tanstack/react-query'"
140140
}
141141
142-
export function ${outputHook}${hookType}({mutation = {}}${
142+
export function ${outputHook}({mutation = {}}${
143143
isTypeScript
144144
? `: {
145145
mutation?: MutationOptions<Actions.${namespaceName}.${functionName}.ReturnType, Actions.${namespaceName}.${functionName}.ErrorType, Actions.${namespaceName}.${functionName}.ParametersType> | undefined
@@ -168,7 +168,7 @@ export async function generate(options: Generate = {}) {
168168
return ['${namespaceName}.${functionName}', parameters] as const
169169
}
170170
171-
export function ${outputHook}${hookType}({query = {}, args}${
171+
export function ${outputHook}({query = {}, args}${
172172
isTypeScript
173173
? `: {
174174
query?: QueryOptions<Actions.${namespaceName}.${functionName}.ReturnType, Actions.${namespaceName}.${functionName}.ErrorType, Actions.${namespaceName}.${functionName}.ReturnType, QueryKey> | undefined

0 commit comments

Comments
 (0)