Use JSDoc: Index
How to add JSDoc comments to CommonJS and Node.js modules.
Use JSDoc: Getting Started with JSDoc 3
JSDoc 3 is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor. You add documentation comments directly to your source code, right alongside the code itself.
Use JSDoc
The parameter type can be a built-in JavaScript type, such as string or Object, or a JSDoc namepath to another symbol in your code. If you have written documentation for the symbol at …
Use JSDoc
@use JSDoc Overview Provide an example of how to use a documented item. The text that follows this tag will be displayed as highlighted code. Examples Note that a doclet may have …
Use JSDoc
You can use any Google Closure Compiler type expression, as well as several other formats that are specific to JSDoc. If JSDoc determines that a type expression is invalid, it will display an …
Use JSDoc: ES 2015 Classes
JSDoc 3 makes it easy to document classes that follow the ECMAScript 2015 specification. You don't need to use tags such as @class and @constructor with ES 2015 classes—JSDoc …
Use JSDoc: Tutorials
JSDoc allows you to include tutorials alongside your API documentation. You can use this feature to provide detailed instructions for using your API, such as a "getting started" guide or a step-by …
Use JSDoc: Configuring JSDoc with a configuration file
To run JSDoc with a configuration file, use the -c command-line option (for example, jsdoc -c /path/to/conf.json or jsdoc -c /path/to/conf.js). The following examples show a simple …
Use JSDoc: Block and inline tags
Most JSDoc tags are block tags. In general, when this site refers to "JSDoc tags," we really mean "block tags." Examples In the following example, @param is a block tag, and {@link} is an inline …
Use JSDoc
Document the return value of a function.Synonyms return Syntax @returns [{type}] [description] Overview The @returns tag documents the value that a function returns. If you are …