@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();  
  }
}
Powered by webdoc!