Skip to content

Commit 15ba9b5

Browse files
committed
feat: only add description jsdoc if it exists
1 parent d0c889c commit 15ba9b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,11 @@ export interface {{classname}}Interface {
357357
*/
358358
export interface {{classname}}{{operationIdCamelCase}}Request {
359359
{{#allParams}}
360+
{{#description}}
360361
/**
361362
* {{description}}
362-
* @type {{=<% %>=}}{<%&dataType%>}<%={{ }}=%>
363363
*/
364+
{{/description}}
364365
readonly {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}
365366
{{^-last}}
366367

0 commit comments

Comments
 (0)