@webitel/api-services 26.8.34 → 26.8.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,13 @@
1
- declare const convertDuration: (duration: number) => string;
1
+ export interface ConvertDurationOptions {
2
+ /**
3
+ * Keep the hours segment when the duration is under an hour.
4
+ *
5
+ * `true` (the default) preserves the long-standing `HH:MM:SS` output, which
6
+ * live timers rely on to stay a fixed width as they tick past an hour.
7
+ * `false` yields `MM:SS` below an hour and `HH:MM:SS` above it — for compact
8
+ * places where a leading `00:` is noise.
9
+ */
10
+ alwaysShowHours?: boolean;
11
+ }
12
+ declare const convertDuration: (duration: number, { alwaysShowHours }?: ConvertDurationOptions) => string;
2
13
  export default convertDuration;