MCPcopy
hub / github.com/MALSync/MALSync / DurationFormatOptions

Interface DurationFormatOptions

src/utils/IntlWrapper.ts:7–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5export type DurationStyle = 'Duration' | 'Progress' | 'M/H/D/Y';
6
7export interface DurationFormatOptions {
8 style?: 'long' | 'short' | 'narrow' | 'digital' | 'significantLongNarrow' | undefined;
9 years?: 'long' | 'short' | 'narrow' | undefined;
10 yearsDisplay?: 'auto' | 'always' | undefined;
11 months?: 'long' | 'short' | 'narrow' | undefined;
12 monthsDisplay?: 'auto' | 'always' | undefined;
13 weeks?: 'long' | 'short' | 'narrow' | undefined;
14 weeksDisplay?: 'auto' | 'always' | undefined;
15 days?: 'long' | 'short' | 'narrow' | undefined;
16 daysDisplay?: 'auto' | 'always' | undefined;
17 hours?: 'long' | 'short' | 'narrow' | 'numeric' | '2-digit' | undefined;
18 hoursDisplay?: 'auto' | 'always' | undefined;
19 minutes?: 'long' | 'short' | 'narrow' | 'numeric' | '2-digit' | undefined;
20 minutesDisplay?: 'auto' | 'always' | undefined;
21 seconds?: 'long' | 'short' | 'narrow' | 'numeric' | '2-digit' | undefined;
22 secondsDisplay?: 'auto' | 'always' | undefined;
23 milliseconds?: 'long' | 'short' | 'narrow' | 'numeric' | undefined;
24 millisecondsDisplay?: 'auto' | 'always' | undefined;
25 microseconds?: 'long' | 'short' | 'narrow' | 'numeric' | undefined;
26 microsecondsDisplay?: 'auto' | 'always' | undefined;
27 nanoseconds?: 'long' | 'short' | 'narrow' | 'numeric' | undefined;
28 nanosecondsDisplay?: 'auto' | 'always' | undefined;
29 fractionalDigits?: number | undefined;
30}
31
32export interface DurationFormat {
33 years?: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected