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',
|
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: {}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user