mirror of
https://github.com/jsdoc/jsdoc.git
synced 2026-02-01 16:45:41 +00:00
As part of this commit, we automatically flag rest parameters as repeatable, even if the JSDoc comment doesn't identify the parameter as repeatable. As a result, it's difficult to document a rest parameter as though it were a normal parameter (should you want to do that for some reason). I may revert this piece if it generates complaints.
17 lines
394 B
JavaScript
17 lines
394 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Set the list of users who are admins.
|
|
*
|
|
* @param {User} users - The users who will receive admin rights.
|
|
*/
|
|
function setAdmins(...users) {}
|
|
|
|
/**
|
|
* Set the list of users who can access a widget.
|
|
*
|
|
* @param {Widget} widget - The widget.
|
|
* @param {User} users - The users who will receive rights to access the widget.
|
|
*/
|
|
function setWidgetAccess(widget, ...users) {}
|