swc/crates/jsdoc/tests/fixtures/moduleisconstructor2.js

26 lines
431 B
JavaScript
Raw Normal View History

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