feat: add returnTypeVarName and returnBaseTypeVarName to TagOperation interface and update generator function
This commit is contained in:
@@ -175,6 +175,8 @@ export function generateCleanArchitecture(
|
||||
bodyParam: 'body',
|
||||
returnType: returnType !== 'void' ? returnType : false,
|
||||
returnBaseType: returnBaseType !== 'void' ? returnBaseType : false,
|
||||
returnTypeVarName: returnType !== 'void' ? toCamelCase(returnType) : false,
|
||||
returnBaseTypeVarName: returnBaseType !== 'void' ? toCamelCase(returnBaseType) : false,
|
||||
isListContainer: isListContainer,
|
||||
vendorExtensions: {}
|
||||
});
|
||||
|
||||
@@ -78,6 +78,8 @@ export interface TagOperation {
|
||||
bodyParam: string;
|
||||
returnType: string | boolean;
|
||||
returnBaseType: string | boolean;
|
||||
returnTypeVarName: string | boolean;
|
||||
returnBaseTypeVarName: string | boolean;
|
||||
isListContainer: boolean;
|
||||
vendorExtensions: Record<string, unknown>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user