Skip to content

Commit 933b921

Browse files
committed
use new DurationFormat defs
1 parent 56b991f commit 933b921

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/esnext.temporal.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference lib="es2015.symbol.wellknown" />
22
/// <reference lib="es2020.intl" />
3+
/// <reference lib="es2025.intl" />
34

45
declare namespace Temporal {
56
type CalendarLike = PlainDate | PlainDateTime | PlainMonthDay | PlainYearMonth | ZonedDateTime | string;
@@ -344,7 +345,7 @@ declare namespace Temporal {
344345
total(totalOf: "day" | "days" | TimeUnit): number;
345346
total(totalOf: DurationTotalOptions): number;
346347
toString(options?: DurationToStringOptions): string;
347-
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
348+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DurationFormatOptions): string;
348349
toJSON(): string;
349350
valueOf(): never;
350351
readonly [Symbol.toStringTag]: "Temporal.Duration";

0 commit comments

Comments
 (0)