Deprecated property not marked as such
greg0ire opened this issue · comments
Grégoire Paris commented
Consider the following piece of code:
interface Hi {
/** @deprecated */
stopUsingMe?: string
}
export function foo(): Hi {
return {
stopUsingMe: "toto"
}
}
I would expect a diagnosis letting me know that I shouldn't use stopUsingMe
inside foo()
, but that does not happen.
I'm using v4.3.3
Note that it works for other elements, for example if I deprecate a function, it's stricken through at every call site.
Rafał Chłodnicki commented
Diagnostics are provided by typescript/tsserver. You should ask about it in the typescript repo instead.
Rafał Chłodnicki commented
This issue looks related: microsoft/TypeScript#45657
Grégoire Paris commented
It does look related! Thanks 🙏