sahilrajput.com

Readme

Source: https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html

Code Examples

// number type
/** @type {number} */
let k

// Defining parameter types of function 
/**
 * @param {string} testName This is the name of test.
 * @param {Function} fun This is test function.
 */
let m = (testName, fun) => undefined

// any type
/** @type any */
let a 

// object type
/** @type object */
let b

TODO

https://stackoverflow.com/questions/49836644/how-to-import-a-typedef-from-one-file-to-another-in-jsdoc-using-node-js