Skip to content

fix: deprecated accessors not being detected as deprecated - #3145

Open
mrcwbr wants to merge 1 commit into
TypeStrong:masterfrom
mrcwbr:fix/accessor-deprecated-detection
Open

mrcwbr wants to merge 1 commit into
TypeStrong:masterfrom
mrcwbr:fix/accessor-deprecated-detection

Conversation

@mrcwbr

@mrcwbr mrcwbr commented Oct 26, 2026

Copy link
Copy Markdown

Reflection.isDeprecated() only inspects declaration.signatures, which is populated for methods and functions. Accessors (get/set) never populate signatures — their doc comments live on the separate
getSignature/setSignature properties instead. As a result, a @deprecated tag on a getter or setter was silently ignored: isDeprecated() returned false, and anything downstream that relies on it (e.g.
typedoc-plugin-markdown striking through deprecated titles) never picked it up.

This adds the same "every signature deprecated" check already used for signatures to getSignature/setSignature, so an accessor is considered deprecated only when all of its defined accessors (get
and/or set) carry @deprecated — consistent with how overloaded methods are already handled.

@mrcwbr
mrcwbr force-pushed the fix/accessor-deprecated-detection branch from 9e51442 to d3c6aca Compare October 26, 2026 06:54

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant