diff --git a/src/createUseMutation.ts b/src/createUseMutation.ts index c673696..89b29d3 100644 --- a/src/createUseMutation.ts +++ b/src/createUseMutation.ts @@ -35,7 +35,7 @@ export const createUseMutation = ( const mutationResult = ts.factory.createTypeAliasDeclaration( [ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)], - ts.factory.createIdentifier(`${className}${methodName}MutationResult`), + ts.factory.createIdentifier(`${className}${capitalizeFirstLetter(methodName)}MutationResult`), undefined, awaitedResponseDataType );