Skip to content

Tag: jsdoc

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…

JSDoc: arrow function params

I’m trying to document my code with JSDoc (EcmaScript 2015, WebStorm 12 Build 144.3357.8). I have an arrow function which I want to document its parameters. This two examples work (I get auto-completion): But when I want to document an arrow function in forEach function, for example, the auto-completion…