From 3174409e20bd54ee41536b1f7ddade34ee82012b Mon Sep 17 00:00:00 2001 From: Zack Hoherchak Date: Fri, 4 Mar 2022 17:41:02 -0500 Subject: [PATCH] added types to utils --- src/com.elgato.template.sdPlugin/libs/js/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com.elgato.template.sdPlugin/libs/js/utils.js b/src/com.elgato.template.sdPlugin/libs/js/utils.js index 6471e1d..7908cea 100644 --- a/src/com.elgato.template.sdPlugin/libs/js/utils.js +++ b/src/com.elgato.template.sdPlugin/libs/js/utils.js @@ -1,7 +1,7 @@ class Utils { /** * Returns the value from a form using the form controls name property - * @param {*} form + * @param {Element | string} form * @returns */ static getFormValue(form) { @@ -35,7 +35,7 @@ class Utils { /** * Sets the value of form controls using their name attribute and the jsn object key * @param {*} jsn - * @param {*} form + * @param {Element | string} form */ static setFormValue(jsn, form) { if (typeof form === 'string') { @@ -68,7 +68,7 @@ class Utils { /** * This provides a slight delay before processing rapid events - * @param {*} wait - delay before processing function (recommended time 150ms) + * @param {number} wait - delay before processing function (recommended time 150ms) * @param {function} fn * @returns */