From fb8ce5b1f43ea91dd6fd815cd84330d015041236 Mon Sep 17 00:00:00 2001 From: Daniel Freytag Date: Thu, 12 Dec 2024 17:33:05 +0100 Subject: [PATCH] fix: return type for function --- dates/dates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dates/dates.ts b/dates/dates.ts index 6874369..1f18bdb 100644 --- a/dates/dates.ts +++ b/dates/dates.ts @@ -218,4 +218,4 @@ export const getFullRelativeTime = (date: DateTime): string => `${getDateHourMin * formatDuration(getMsOffset(startTs)) // time taken * ``` */ -export const formatDuration = (duration: number) => stdFormat(duration, { ignoreZero: true }) +export const formatDuration = (duration: number): string => stdFormat(duration, { ignoreZero: true })