title: How to document a string type in jsdoc with limited possible values
body: <p>I am having a function that accepts one string parameter. This parameter can have only one of a few defined possible values. What is the best way to document the same? Should shapeType be defined as enum or TypeDef or something else?</p>
  
  <pre><code>Shape.prototype.create = function (shapeType) {
      // shapeType can be "rect", "circle" or "ellipse"...
      this.type = shapeType;
  };
  
  Shape.prototype.getType = function (shapeType) {
      // shapeType can be "rect", "circle" or "ellipse"...
      return this.type;
  };
  </code></pre>
  
  <p>The second part of the problem is that the possible values of <code>shapeType</code> is not known in the file that defines <code>shapeType</code> as whatever you suggest. There are multiple files contributed by several developers who might add to the possible values of <code>shapeType</code>.</p>
  
  <p>PS: Am using <code>jsdoc3</code></p>