What’s the proper way to document callbacks with jsdoc?
JSDoc 3 has a @callback tag for exactly this purpose. Here’s a usage example: /** * Callback for adding two numbers. * * @callback addStuffCallback * @param {int} sum – An integer. */ /** * Add two numbers together, then pass the results to a callback function. * * @param {int} x – An integer. … Read more