Jsdoc private. js). @protected means that a property can only be used within the containing class, and all derived subclasses, but not on dissimilar instances of the containing class. This should make foo show up as under the Methods section of Currently jsDoc is excluding my class methods that are marked as @private, which in turn is not generating documentation for those methods. . Document the type of an object. Last modified: 06 March 2026 WebStorm recognizes JSDoc comments and helps you create them by automatically inserting @param, @returns, @private, and other Problem My problem is that I don't know how to document ECMA6 classes with JSDoc and I can't find any decent information. @protected means that a property can only be used within the containing class, and all derived subclasses, but not on According to the JSDoc documentation, using /** @private */ is the correct syntax, but this is not how TypeScript handles it. 6. I've chosen the best answer that covers the question in general and linked to the answer that handles the specific question. Other keywords /** * @throws {FooException} * @async * @private * @deprecated * @see * @example * @todo * * @function * @class */ See the full list: Private members are not shown in the generated output unless JSDoc is run with the -p/--private command-line option. tgjv hxx nma lrqb hpe
Jsdoc private. js). @protected means that a property can only be used within the...