jsdoc.github.io icon indicating copy to clipboard operation
jsdoc.github.io copied to clipboard

Update @type docs to include inline quoted string enums

Open coagmano opened this issue 8 years ago • 1 comments

As this comment says, the parser has supported these since 2014, but it isn't in the documentation that you can use them

Example:

/**
 * @param {('rect'|'circle'|'ellipse')} shapeType - The allowed type of the shape
 */
Shape.prototype.getType = function (shapeType) {
  return this.type;
};

coagmano avatar May 04 '17 00:05 coagmano

Happy to write a PR at home later if nobody else wants to do this

coagmano avatar May 04 '17 00:05 coagmano