Skip to content

Commit bd5566d

Browse files
committed
feat: only add description jsdoc if it exists
1 parent eb78f67 commit bd5566d

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
@@ -358,10 +358,11 @@ export interface {{classname}}Interface {
358358
*/
359359
export interface {{classname}}{{operationIdCamelCase}}Request {
360360
{{#allParams}}
361+
{{#description}}
361362
/**
362363
* {{description}}
363-
* @type {{=<% %>=}}{<%&dataType%>}<%={{ }}=%>
364364
*/
365+
{{/description}}
365366
readonly {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}
366367
{{^-last}}
367368

0 commit comments

Comments
 (0)