@readonly
Synonyms
@const
Overview
This tag declares a value to be constant.
Example(s)
class Node {
constructor() {
/**
* Id that doesn't change
*
* @readonly
*/
this.id = uuidv4();
}
}
@const
This tag declares a value to be constant.
class Node {
constructor() {
/**
* Id that doesn't change
*
* @readonly
*/
this.id = uuidv4();
}
}