mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
24 lines
499 B
TypeScript
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;
|
|
}
|
|
}
|