我无法让 jsdoc 3.5.5 为内嵌注释生成文档。请看附件示例:
/**
* my TestCase Class
*/
class TestCase {
doesntWorkA(/** String */ str) /** Number */ {
return 5;
}
doesntWorkB(/** @type {String} */ str) /** @type {Number} */ {
return 5;
}
/**
* @param {String} str
* @return {Number}
*/
works(str) {
return 5;
}
}
最佳答案
这是一个展示如何内联使用它的示例:
hooks.run.tap('xxxx',/** @param {WebpackCompilation} compilation */ compilation => {
...
});
关于javascript - JSDoc : How to declare inline params,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54851880/