-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
π Search Terms
- Deprecated implementation
- Deprecated interface
Related #57584
π Version & Regression Information
Not a regression
β― Playground Link
No response
π» Code
type I = {
/**
* @deprecated
*/
text: string;
};
function f(i: I) { return i; }
f({ text: 'a' });
const a: I = { text: 'a' }
a.text;
π Actual behavior
Currently only the last use of a.text
shows as deprecated
π Expected behavior
It would be helpful to also render deprecations for any implementations of I.text
too as these are also using the deprecated property
Additional information about the issue
No response
JoshuaKGoldberg, osmolovyk, mathpaquette, zfor, uhyo and 5 more
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript