From fed1c20afa674cc12c90b969333c2bfb76cf5bd4 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Thu, 6 Jun 2024 21:14:43 +0200 Subject: [PATCH] drawTimer: fix type of parameter The elapsed is passed to something that expects a number, so use that type for the parameter itself. --- lib/ReactViews/Generic/Timer/drawTimer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ReactViews/Generic/Timer/drawTimer.js b/lib/ReactViews/Generic/Timer/drawTimer.js index c1f89ebdf76..0d8fef7a8f3 100644 --- a/lib/ReactViews/Generic/Timer/drawTimer.js +++ b/lib/ReactViews/Generic/Timer/drawTimer.js @@ -155,7 +155,7 @@ export function createTimer( * @param {string} containerId The id of the element to insert the timer into. * @param {string} elapsedTimeClass A class for styling the animation that fills the timer as it runs. * @param {string} backgroundClass A class for styling the timer's background circle. - * @param {string} [elapsed=0] How much time (in seconds) has already passed. + * @param {number} [elapsed=0] How much time (in seconds) has already passed. */ export function startTimer( radius,