Skip to content

Commit

Permalink
Include API name in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Beppe Catanese authored and gcatanese committed Oct 24, 2024
1 parent d9f52e8 commit d5e47ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/typescript/api_summary.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{/returnType}}
{{#isDeprecated}}
*
* @deprecated since v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* @deprecated since {{#appName}}{{{.}}}{{/appName}} v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* {{#vendorExtensions.x-deprecatedMessage}}{{{.}}}{{/vendorExtensions.x-deprecatedMessage}}
{{/isDeprecated}}
*/
8 changes: 4 additions & 4 deletions templates/typescript/model.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
* {{{.}}}
{{#deprecated}}
*
* @deprecated since v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* {{#vendorExtensions.x-deprecatedMessage}}{{..}}{{/vendorExtensions.x-deprecatedMessage}}
* @deprecated since {{#appName}}{{{.}}}{{/appName}} 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 since {{#appName}}{{{.}}}{{/appName}} v{{#vendorExtensions.x-deprecatedInVersion}}{{.}}{{/vendorExtensions.x-deprecatedInVersion}}
* {{#vendorExtensions.x-deprecatedMessage}}{{{.}}}{{/vendorExtensions.x-deprecatedMessage}}
*/
{{/deprecated}}
{{/description}}
Expand Down

0 comments on commit d5e47ef

Please sign in to comment.