constructor(id, data) {

    id = (typeof id === 'string'
      ? utils.getWithoutPrefix(id, $tm.path.nodeTypes + '/')
      : 'tmap:unknown');

    // call the parent constructor
    super(id, $tm.path.nodeTypes, NodeType.fieldMeta, data);

    Object.freeze(this);

  }
Used to define the type of a node.

Note: NodeType instances are immutable (frozen).