From 4bcbddf58696e0a2595125e9e62320a499e06c3d Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:59:37 -0500 Subject: [PATCH] add jsdoc for added function --- src/renderer/helpers/utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/helpers/utils.js b/src/renderer/helpers/utils.js index e04782dc8c3cb..1bbd8eb13d908 100644 --- a/src/renderer/helpers/utils.js +++ b/src/renderer/helpers/utils.js @@ -545,6 +545,10 @@ export function formatDurationAsTimestamp(lengthSeconds) { return timestamp } +/** + * @param {string} timestamp hh::mm:ss + * @returns {number} timestamp converted to seconds + */ export function timestampToDuration(timestamp) { const splitTimestamp = timestamp.split(':') let seconds = Number(splitTimestamp.at(-1))