Skip to content
Advertisement

Tag: tsdoc

How to mark a property deprecated in a @typedef?

I would like to mark a property (for example, qux below) as deprecated: I should mention, I’d like to do this in a JSDoc comment, not using TypeScript. Answer According to Issue#131 over at tsdoc, you can actually use @deprecated on properties, you just have to set it inside the object (works with JS as well). For e.g.: Results in:

Advertisement