diff --git a/templates/typescript/model.mustache b/templates/typescript/model.mustache index 2a93bb69a..7c3e24bcd 100644 --- a/templates/typescript/model.mustache +++ b/templates/typescript/model.mustache @@ -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}}