feat: add returnTypeVarName and returnBaseTypeVarName to TagOperation interface and update generator function

This commit is contained in:
didavila
2026-03-24 15:37:26 +01:00
parent fc3d95052c
commit f4d9340137
2 changed files with 4 additions and 0 deletions

View File

@@ -175,6 +175,8 @@ export function generateCleanArchitecture(
bodyParam: 'body', bodyParam: 'body',
returnType: returnType !== 'void' ? returnType : false, returnType: returnType !== 'void' ? returnType : false,
returnBaseType: returnBaseType !== 'void' ? returnBaseType : false, returnBaseType: returnBaseType !== 'void' ? returnBaseType : false,
returnTypeVarName: returnType !== 'void' ? toCamelCase(returnType) : false,
returnBaseTypeVarName: returnBaseType !== 'void' ? toCamelCase(returnBaseType) : false,
isListContainer: isListContainer, isListContainer: isListContainer,
vendorExtensions: {} vendorExtensions: {}
}); });

View File

@@ -78,6 +78,8 @@ export interface TagOperation {
bodyParam: string; bodyParam: string;
returnType: string | boolean; returnType: string | boolean;
returnBaseType: string | boolean; returnBaseType: string | boolean;
returnTypeVarName: string | boolean;
returnBaseTypeVarName: string | boolean;
isListContainer: boolean; isListContainer: boolean;
vendorExtensions: Record<string, unknown>; vendorExtensions: Record<string, unknown>;
} }