Closed jackcannon closed 1 year ago
In the case of multiple JSDoc comment before the function, prefer the last (and therefore the closest to the function)
/** * A random orphan JSDoc comment. */ /** * Does stuff. */ function doStuff(param: string): number { return 1; };
/** * A random orphan JSDoc comment. * @param {string} param * @returns {number} */ /** * Does stuff. */ function doStuff(param) { return 1; } ;
/** * A random orphan JSDoc comment. */ /** * Does stuff. * @param {string} param * @returns {number} */ function doStuff(param) { return 1; } ;
In the case of multiple JSDoc comment before the function, prefer the last (and therefore the closest to the function)
Input
❌ Before
✅ After