From 09e61d9d6321076313790d606282bfb83a8c4065 Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Thu, 21 Apr 2022 20:02:18 +0100 Subject: [PATCH] Changed Array to type[] Signed-off-by: Matthew Nickson --- server/model/group.js | 2 +- server/model/monitor.js | 2 +- server/model/status_page.js | 4 ++-- server/server.js | 2 +- server/util-server.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/model/group.js b/server/model/group.js index 40fb1c7b..f24fe99d 100644 --- a/server/model/group.js +++ b/server/model/group.js @@ -27,7 +27,7 @@ class Group extends BeanModel { /** * Get all monitors - * @returns {Array} + * @returns {Bean[]} */ async getMonitorList() { return R.convertToBeans("monitor", await R.getAll(` diff --git a/server/model/monitor.js b/server/model/monitor.js index d5dc1d90..b97e424d 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -840,7 +840,7 @@ class Monitor extends BeanModel { * than target days * @param {number} daysRemaining Number of days remaining on certifcate * @param {number} targetDays Number of days to alert after - * @param {Array>} notificationList List of notification providers + * @param {LooseObject[]} notificationList List of notification providers * @returns {Promise} */ async sendCertNotificationByTargetDays(daysRemaining, targetDays, notificationList) { diff --git a/server/model/status_page.js b/server/model/status_page.js index 605bdd3e..a48dc7b2 100644 --- a/server/model/status_page.js +++ b/server/model/status_page.js @@ -39,7 +39,7 @@ class StatusPage extends BeanModel { /** * Update list of domain names - * @param {Array} domainNameList + * @param {string[]} domainNameList * @returns {Promise} */ async updateDomainNameList(domainNameList) { @@ -83,7 +83,7 @@ class StatusPage extends BeanModel { /** * Get list of domain names - * @returns {Array} + * @returns {Object[]} */ getDomainNameList() { let domainList = []; diff --git a/server/server.js b/server/server.js index 944a2fff..1c7a2b6e 100644 --- a/server/server.js +++ b/server/server.js @@ -1475,7 +1475,7 @@ try { /** * Update notifications for a given monitor * @param {number} monitorID ID of monitor to update - * @param {Array} notificationIDList List of new notification + * @param {number[]} notificationIDList List of new notification * providers to add * @returns {Promise} */ diff --git a/server/util-server.js b/server/util-server.js index f7c8b967..72f633a2 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -387,7 +387,7 @@ exports.checkCertificate = function (res) { /** * Check if the provided status code is within the accepted ranges * @param {string} status The status code to check - * @param {Array} acceptedCodes An array of accepted status codes + * @param {string[]} acceptedCodes An array of accepted status codes * @returns {boolean} True if status code within range, false otherwise * @throws {Error} Will throw an error if the provided status code is not a valid range string or code string */