How do I refer to another typescript type in comments/JSDoc?

You sure can, though your mileage may vary. 1: A use of @link in Selenium-Webdriver’s TypeScript typing file /** * Converts a level name or value to a {@link logging.Level} value. * If the name/value is not recognized, {@link logging.Level.ALL} * will be returned. * @param {(number|string)} nameOrValue The log level name, or value, to … Read more

JSDoc typedef in a separate file

You can define types in a module (eg. typedefs.js). The module contains your JSDoc typedefs and can simply export an unused property. // typedefs.js /** * @typedef foo * @property {string} bar */ // etc. exports.unused = {}; // or export {}; To use it, import the module where you need to reference these typedefs: … Read more

How to document the properties of the object in the JSDoc 3 tag: @this

To document instance members, use @name Class#member: /** * Construct a new component * * @class Component * @classdesc A generic component * * @param {Object} options – Options to initialize the component with * @param {String} options.name – This component’s name, sets {@link Component#name} * @param {Boolean} options.visible – Whether this component is visible, … Read more

JSDoc: How do I document the “options” object literal for a parent “class”? [duplicate]

If I understand your question correctly, you have a function that takes an options object and you want to document all of its members? A rough example of how to do that in JSDoc is as below: /** * @description * Compliment someone on their something. * * @param {Object} options * @param {String} options.name … Read more

How to document CoffeeScript source code with JSDoc?

CoffeeScript Input: ### define function variable before block to avoid code being appended to closing part of JSDoc comment ### cube = null ###* * Function to calculate cube of input * @param {number} Number to operate on * @return {number} Cube of input ### cube = (x) -> x*x*x JavaScript Output from windows cmd … Read more

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