You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// my-new-type.js/** * MyNewType * @typedef {Object} MyNewType * @property {Factory~logFirst} logFirst * @property {Factory~logSecond} logSecond *//** * MyNewType factory * @constructor * @param {number} first * @param {number} second * @returns MyNewType */functionFactory(first,second){/** * logs first argument * @param {number} times */functionlogFirst(times){for(leti=0;i<times;i++){console.log(first);}}/** * logs second argument * @param {number} times */functionlogSecond(times){for(leti=0;i<times;i++){console.log(second);}}return{
logFirst,
logSecond
};}module.exports=Factory;
put the mouse over the MyNewType definition and see, that logFirst and logSecond are not defined:
What is expected - definitions of these functions are taken directly from the Factory object's inner definitions. The syntax is correct, since if I do jsdoc my-file.js the generated documentation correctly links these types together:
Here is the namepath documentation: http://usejsdoc.org/about-namepaths.html
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
MyNewType
definition and see, thatlogFirst
andlogSecond
are not defined:What is expected - definitions of these functions are taken directly from the

Factory
object's inner definitions. The syntax is correct, since if I dojsdoc my-file.js
the generated documentation correctly links these types together:Here is the namepath documentation: http://usejsdoc.org/about-namepaths.html
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: