From 0bab369a6bc6a64bfd8fedd577e69eb27bfb1178 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 5 Oct 2026 07:37:35 +0200 Subject: Show time since done or lateness instead of the last-done date --- src/temporal-ambient.d.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/temporal-ambient.d.ts') diff --git a/src/temporal-ambient.d.ts b/src/temporal-ambient.d.ts index c5ec34f..38e69d4 100644 --- a/src/temporal-ambient.d.ts +++ b/src/temporal-ambient.d.ts @@ -10,6 +10,7 @@ declare global { }; interface Duration { + readonly days: number; total(options: { unit: 'millisecond' | 'day' }): number; } namespace Duration { @@ -47,6 +48,8 @@ declare global { readonly dayOfWeek: number; add(durationLike: DurationLike): PlainDate; subtract(durationLike: DurationLike): PlainDate; + /** Difference to another date; largest unit defaults to days. */ + until(other: PlainDate): Duration; toZonedDateTime(timeZone: TimeZoneId): ZonedDateTime; toString(): string; } -- cgit v1.3