Skip to content

Commit

Permalink
fix: return type for function
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Dec 12, 2024
1 parent d3f1d8b commit fb8ce5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dates/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

0 comments on commit fb8ce5b

Please sign in to comment.