mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-23 23:11:13 -04:00
chore(jsdoc):Linting fixes (#3703)
* fixed the lockfile having a different version * jsdoc
This commit is contained in:
parent
d243cd84bf
commit
d6302198f3
11 changed files with 117 additions and 54 deletions
|
@ -6,11 +6,22 @@ const { ArrayWithKey } = require("./array-with-key");
|
|||
*/
|
||||
class LimitQueue extends ArrayWithKey {
|
||||
|
||||
/**
|
||||
* The limit of the queue after which the first element will be removed
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
__limit;
|
||||
/**
|
||||
* The callback function when the queue exceeds the limit
|
||||
* @private
|
||||
* @callback onExceedCallback
|
||||
* @param {{key:K,value:V}|nul} item
|
||||
*/
|
||||
__onExceed = null;
|
||||
|
||||
/**
|
||||
* @param {number} limit
|
||||
* @param {number} limit The limit of the queue after which the first element will be removed
|
||||
*/
|
||||
constructor(limit) {
|
||||
super();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue