How do document a class that is returned from a function call with jsDoc -


i have large existing javascript codebase, of organized in classes created custom library. of similar this:

/**   * @memberof namespace.subnamespace1  * @class   */ namespace.subnamespace1.classname1 = namespace.subnamespace2.classname2.subclass({   ctor: function () {    },    /**    * method1 special method special things.    * @param config {object}    * @returns {boolean}    */   method1: function (config) {   },    method2: function () {   } }) 

the subclass method defined on object prototype , creates class inherits object it's called on. want document methods of classes created in way, unfortunately documentation above documentation method1 not picked jsdoc (the documentation class works fine). how can document these methods in way jsdoc understand?

it turns out using latest version of jsdoc npm solved problem, , recognizes these methods part of given class if annotated @function


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -