馃攷 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
}
Playground with relevant code
馃檨 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.
馃攷 Search Terms
index signature deprecation annotation
@deprecatedjsdoc馃捇 Code
Playground with relevant code
馃檨 Actual behavior
e.zshows up like a normal property, but it's deprecated.馃檪 Expected behavior
Any usage of
e.zshould be highlighted as deprecated.