diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/temporal-ambient.d.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/temporal-ambient.d.ts b/src/temporal-ambient.d.ts index f6080b0..fbd721e 100644 --- a/src/temporal-ambient.d.ts +++ b/src/temporal-ambient.d.ts @@ -43,7 +43,18 @@ declare global { options?: Intl.DateTimeFormatOptions, ): string; } - + interface PlainDate { + /** ISO day of week: Monday = 1 … Sunday = 7. */ + readonly dayOfWeek: number; + add(durationLike: DurationLike): PlainDate; + subtract(durationLike: DurationLike): PlainDate; + toZonedDateTime(timeZone: TimeZoneId): ZonedDateTime; + } + namespace PlainDate { + function from( + plainDateLike: { year: number; month: number; day: number }, + ): PlainDate; + } namespace Now { function instant(): Instant; function timeZoneId(): TimeZoneId; |
