swc/ecmascript/jsdoc/tests/fixtures/moduleisconstructor.js

29 lines
444 B
JavaScript
Raw Normal View History

2020-08-14 12:20:25 +03:00
/**
* Describe the module here.
* @module mymodule/config
*/
/**
* Create a new configuration.
*
* @classdesc Describe the class here.
* @class
* @alias module:mymodule/config
* @param {string} id
*/
function Config(id) {
/** Document me. */
this.id = id;
}
/**
* Get the configuration ID.
*
* @return {string} The configuration ID.
*/
Config.prototype.getId = function() {
return this.id;
}
module.exports = Config;