Fixed jsdoc type

This commit is contained in:
Rick van Drongelen 2025-05-21 13:09:02 +02:00
parent 5366212347
commit 4a5fe2145c
No known key found for this signature in database

View file

@ -38,7 +38,7 @@ class Prometheus {
/** /**
* @param {object} monitor Monitor object to monitor * @param {object} monitor Monitor object to monitor
* @param {Array<object>} tags Tags to add to the monitor * @param {Array<{name:string,value:?string}>} tags Tags to add to the monitor
*/ */
constructor(monitor, tags) { constructor(monitor, tags) {
let filteredValidAsciiTags = this.filterValidAsciiTags(tags); let filteredValidAsciiTags = this.filterValidAsciiTags(tags);
@ -60,7 +60,7 @@ class Prometheus {
/** /**
* Filter tags to remove the ones that contain non-ASCII characters * Filter tags to remove the ones that contain non-ASCII characters
* See https://github.com/louislam/uptime-kuma/pull/4704#issuecomment-2366524692 * See https://github.com/louislam/uptime-kuma/pull/4704#issuecomment-2366524692
* @param {Array<{name: string, value:string}>} tags The tags to filter * @param {Array<{name: string, value:?string}>} tags The tags to filter
* @returns {string[]} The filtered tags * @returns {string[]} The filtered tags
*/ */
filterValidAsciiTags(tags) { filterValidAsciiTags(tags) {