mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
Merge pull request #410 from thetrime/use_options_tsdoc
Correctly document params when useOptions is set
This commit is contained in:
commit
c76d3c41e4
@ -23,11 +23,13 @@ export class {{{name}}} {
|
||||
{{#if description}}
|
||||
* {{{description}}}
|
||||
{{/if}}
|
||||
{{#if parameters}}
|
||||
{{#each parameters}}
|
||||
* @param {{{name}}} {{{description}}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#unless @root.useOptions}}
|
||||
{{#if parameters}}
|
||||
{{#each parameters}}
|
||||
* @param {{{name}}} {{{description}}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{#each results}}
|
||||
* @result {{{type}}} {{{description}}}
|
||||
{{/each}}
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
{{/each}}
|
||||
}: {
|
||||
{{#each parameters}}
|
||||
/** {{{description}}} */
|
||||
{{{name}}}{{>isRequired}}: {{>type}},
|
||||
{{/each}}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user