JSDocs: Documenting Node.js express routes

I do the following in my code. /** Express router providing user related routes * @module routers/users * @requires express */ /** * express module * @const */ const express = require(‘express’); /** * Express router to mount user related functions on. * @type {object} * @const * @namespace usersRouter */ const router = express.Router(); … Read more

JSDoc with AngularJS

I have encountered this issue as well. I am now writing documentation for angularjs codes through jsdoc comments like this: 1.Make a blank .js file with the following comment: /** * @namespace angular_module */ This will create a separate html in the generated documentation for listing all modules. 2.In javascript files that defines any new … Read more

JSDoc: Return object structure

Define your structure separately using a @typdef: /** * @typedef {Object} Point * @property {number} x – The X Coordinate * @property {number} y – The Y Coordinate */ And use it as the return type: /** * Returns a coordinate from a given mouse or touch event * @param {TouchEvent|MouseEvent|jQuery.Event} e * A valid … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)