Skip to content

Commit

Permalink
fix(generator): fix missing comma in axios generator when mutator has…
Browse files Browse the repository at this point in the history
… 2nd arg (#383)
  • Loading branch information
rsanchez authored May 10, 2022
1 parent 37a993b commit 0edef1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/generators/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const generateAxiosImplementation = (
'implementation',
)}\n ${
isRequestOptions && mutator.hasSecondArg
? `options?: SecondParameter<typeof ${mutator.name}>`
? `options?: SecondParameter<typeof ${mutator.name}>,`
: ''
}${!isBodyVerb ? 'signal?: AbortSignal\n' : '\n'}) => {${bodyForm}
return ${mutator.name}<${response.definition.success || 'unknown'}>(
Expand Down

1 comment on commit 0edef1f

@vercel
Copy link

@vercel vercel bot commented on 0edef1f May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.