From 08b9014ee2af8f457ebd706f72dd5ed87c8e0646 Mon Sep 17 00:00:00 2001 From: Greyfeather Date: Mon, 19 May 2025 00:21:38 -0600 Subject: [PATCH] add JSDoc to notification_utils --- .../modules/common/widgets/notification_utils.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/modules/common/widgets/notification_utils.js b/.config/quickshell/modules/common/widgets/notification_utils.js index b887efd2d..16c3bf284 100644 --- a/.config/quickshell/modules/common/widgets/notification_utils.js +++ b/.config/quickshell/modules/common/widgets/notification_utils.js @@ -1,5 +1,8 @@ - +/** + * @param { string } summary + * @returns { string } + */ function findSuitableMaterialSymbol(summary = "") { const defaultType = 'chat'; if(summary.length === 0) return defaultType; @@ -49,6 +52,10 @@ function findSuitableMaterialSymbol(summary = "") { // return messageTime.format(userOptions.time.dateFormat); // } +/** + * @param { number | string | Date } timestamp + * @returns { string } + */ const getFriendlyNotifTimeString = (timestamp) => { const messageTime = new Date(timestamp); const now = new Date();