问题
I have a parameter that could simply be described as:
/**
* @param {String} source
*/
source
value can be only a set of predefined values, e.g. "youtube", "vimeo".
How to document the accepted range of source
values?
来源:https://stackoverflow.com/questions/32497467/how-to-document-a-parameter-that-accepts-a-predefined-set-of-values