Skip to content

Commit

Permalink
fix: double hook type mutation cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Nov 9, 2024
1 parent 3312d85 commit 7a1facd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cli/Commands/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export async function generate(options: Generate = {}) {
: "import { useMutation } from '@tanstack/react-query'"
}
export function ${outputHook}${hookType}({mutation = {}}${
export function ${outputHook}({mutation = {}}${
isTypeScript
? `: {
mutation?: MutationOptions<Actions.${namespaceName}.${functionName}.ReturnType, Actions.${namespaceName}.${functionName}.ErrorType, Actions.${namespaceName}.${functionName}.ParametersType> | undefined
Expand Down Expand Up @@ -168,7 +168,7 @@ export async function generate(options: Generate = {}) {
return ['${namespaceName}.${functionName}', parameters] as const
}
export function ${outputHook}${hookType}({query = {}, args}${
export function ${outputHook}({query = {}, args}${
isTypeScript
? `: {
query?: QueryOptions<Actions.${namespaceName}.${functionName}.ReturnType, Actions.${namespaceName}.${functionName}.ErrorType, Actions.${namespaceName}.${functionName}.ReturnType, QueryKey> | undefined
Expand Down

0 comments on commit 7a1facd

Please sign in to comment.