Closed
Description
🔎 Search Terms
index signature deprecation annotation @deprecated
jsdoc
💻 Code
interface Example {
/** @deprecated please no longer use this, it's unsafe and kept only for b/c */
[p: string]: any;
/** @deprecated please use `.y` instead */
x: number;
/** Superseeds `.x` */
y: number;
}
function example(e: Example) {
console.log(e.x); // marked as deprecated, as expected
console.log(e.y); // not marked as deprecated, as expected
console.log(e.z); // not marked as deprecated, but should be
}
🙁 Actual behavior
e.z
shows up like a normal property, but it's deprecated.
🙂 Expected behavior
Any usage of e.z
should be highlighted as deprecated.