Skip to content

Commit 5e6c8f1

Browse files
authored
Fix Capitalization on MutationResult (#38)
1 parent 59f06d1 commit 5e6c8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createUseMutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const createUseMutation = (
3535

3636
const mutationResult = ts.factory.createTypeAliasDeclaration(
3737
[ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)],
38-
ts.factory.createIdentifier(`${className}${methodName}MutationResult`),
38+
ts.factory.createIdentifier(`${className}${capitalizeFirstLetter(methodName)}MutationResult`),
3939
undefined,
4040
awaitedResponseDataType
4141
);

0 commit comments

Comments
 (0)