sendou.ink/types/intl-duration-format.d.ts
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

24 lines
499 B
TypeScript

declare namespace Intl {
interface DurationFormatOptions {
style?: "long" | "short" | "narrow" | "digital";
}
interface DurationInput {
years?: number;
months?: number;
weeks?: number;
days?: number;
hours?: number;
minutes?: number;
seconds?: number;
milliseconds?: number;
microseconds?: number;
nanoseconds?: number;
}
class DurationFormat {
constructor(locales?: string | string[], options?: DurationFormatOptions);
format(duration: DurationInput): string;
}
}