mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 08:17:59 -05:00
fix: update timeSeconds type annotation to include null
This commit is contained in:
@@ -15,7 +15,7 @@ export function formatDuration(seconds) {
|
||||
/**
|
||||
* Formats HR zone label with percentage and optional time duration.
|
||||
* @param {number} value - Percentage value
|
||||
* @param {number} timeSeconds - Time in seconds (0 or null means no time)
|
||||
* @param {number|null} timeSeconds - Time in seconds (0 or null means no time)
|
||||
* @returns {string} Formatted label (e.g., "25%" or "25% (15m)")
|
||||
*/
|
||||
export function formatHrZoneLabel(value, timeSeconds) {
|
||||
|
||||
Reference in New Issue
Block a user