Changed Array<T> to type[]

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2022-04-21 20:02:18 +01:00
parent 9996ba1636
commit 09e61d9d63
No known key found for this signature in database
GPG Key ID: BF229DCFD4748E05
5 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ class Group extends BeanModel {
/** /**
* Get all monitors * Get all monitors
* @returns {Array<Bean>} * @returns {Bean[]}
*/ */
async getMonitorList() { async getMonitorList() {
return R.convertToBeans("monitor", await R.getAll(` return R.convertToBeans("monitor", await R.getAll(`

View File

@ -840,7 +840,7 @@ class Monitor extends BeanModel {
* than target days * than target days
* @param {number} daysRemaining Number of days remaining on certifcate * @param {number} daysRemaining Number of days remaining on certifcate
* @param {number} targetDays Number of days to alert after * @param {number} targetDays Number of days to alert after
* @param {Array<LooseObject<any>>} notificationList List of notification providers * @param {LooseObject<any>[]} notificationList List of notification providers
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async sendCertNotificationByTargetDays(daysRemaining, targetDays, notificationList) { async sendCertNotificationByTargetDays(daysRemaining, targetDays, notificationList) {

View File

@ -39,7 +39,7 @@ class StatusPage extends BeanModel {
/** /**
* Update list of domain names * Update list of domain names
* @param {Array<string>} domainNameList * @param {string[]} domainNameList
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async updateDomainNameList(domainNameList) { async updateDomainNameList(domainNameList) {
@ -83,7 +83,7 @@ class StatusPage extends BeanModel {
/** /**
* Get list of domain names * Get list of domain names
* @returns {Array<Object>} * @returns {Object[]}
*/ */
getDomainNameList() { getDomainNameList() {
let domainList = []; let domainList = [];

View File

@ -1475,7 +1475,7 @@ try {
/** /**
* Update notifications for a given monitor * Update notifications for a given monitor
* @param {number} monitorID ID of monitor to update * @param {number} monitorID ID of monitor to update
* @param {Array<number>} notificationIDList List of new notification * @param {number[]} notificationIDList List of new notification
* providers to add * providers to add
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */

View File

@ -387,7 +387,7 @@ exports.checkCertificate = function (res) {
/** /**
* Check if the provided status code is within the accepted ranges * Check if the provided status code is within the accepted ranges
* @param {string} status The status code to check * @param {string} status The status code to check
* @param {Array<string>} 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 * @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 * @throws {Error} Will throw an error if the provided status code is not a valid range string or code string
*/ */