documentationjs/documentation

Support for enumeration types

Closed this issue · 4 comments

/**
 * @param {('rect'|'circle'|'ellipse')} shapeType - The allowed type of the shape
 */

References:

This is necessary for #18 to document such things as the valid values for @kind.

Currently behavior is to fail lint:

        1:1  warning  unexpected token

Support landed upstream; this should be unblocked now -- or perhaps even just work?

tmcw commented

This is the same issue as #662 and is also covered by the new tests in #721