Support for enumeration types
Closed this issue · 4 comments
jfirebaugh commented
/**
* @param {('rect'|'circle'|'ellipse')} shapeType - The allowed type of the shape
*/
References:
- http://stackoverflow.com/questions/19093935/how-to-document-a-string-type-in-jsdoc-with-limited-possible-values
- jsdoc/jsdoc#629
- jsdoc/jsdoc#1065
This is necessary for #18 to document such things as the valid values for @kind
.
jfirebaugh commented
Currently behavior is to fail lint:
1:1 warning unexpected token
jfirebaugh commented
Upstream: eslint/doctrine#156
jfirebaugh commented
Support landed upstream; this should be unblocked now -- or perhaps even just work?