Skip to content

Commit

Permalink
Add @deprecated tag when applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese committed Oct 24, 2024
1 parent e22b955 commit 853bb7e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/typescript/model.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ export class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
{{#description}}
/**
* {{{.}}}
{{#deprecated}}
*
* @deprecated since v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* {{#vendorExtensions.x-deprecatedMessage}}{{..}}{{/vendorExtensions.x-deprecatedMessage}}
{{/deprecated}}
*/
{{/description}}
{{^description}}
{{#deprecated}}
/**
* @deprecated since v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* {{#vendorExtensions.x-deprecatedMessage}}{{..}}{{/vendorExtensions.x-deprecatedMessage}}
*/
{{/deprecated}}
{{/description}}
'{{name}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
{{/vars}}
Expand Down

0 comments on commit 853bb7e

Please sign in to comment.