From d02c8da7bdb7cbc9d0c597cbf334984352eb77c1 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 24 Sep 2021 13:45:58 +0300 Subject: [PATCH] fix(docs-infra): display deprecation notes for properties (#43566) Previously, deprecation notes for deprecated class/interface properties were not shown in the API docs. This commit fixes it by ensuring that deprecation notes are shown for properites (similar to how it works for methods). PR Close #43566 --- aio/tools/transforms/templates/api/lib/memberHelpers.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aio/tools/transforms/templates/api/lib/memberHelpers.html b/aio/tools/transforms/templates/api/lib/memberHelpers.html index 8c14e4614a0..9d9d51fb04a 100644 --- a/aio/tools/transforms/templates/api/lib/memberHelpers.html +++ b/aio/tools/transforms/templates/api/lib/memberHelpers.html @@ -234,6 +234,10 @@ {$ property.shortDescription | marked | trim $}{% endif %} {$ (property.description or property.constructorParamDoc.description) | marked $} + {%- if property.deprecated !== undefined %} + {$ ('**Deprecated** ' + property.deprecated) | marked | trim $} + {%- endif %} + {%- if property.see.length %}

See also: