diff options
Diffstat (limited to 'src/temporal-ambient.d.ts')
| -rw-r--r-- | src/temporal-ambient.d.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/temporal-ambient.d.ts b/src/temporal-ambient.d.ts index 87933b9..c5ec34f 100644 --- a/src/temporal-ambient.d.ts +++ b/src/temporal-ambient.d.ts @@ -36,6 +36,7 @@ declare global { add(durationLike: DurationLike): ZonedDateTime; startOfDay(): ZonedDateTime; toInstant(): Instant; + toPlainDate(): PlainDate; toLocaleString( locales?: string | string[], options?: Intl.DateTimeFormatOptions, @@ -47,13 +48,12 @@ declare global { add(durationLike: DurationLike): PlainDate; subtract(durationLike: DurationLike): PlainDate; toZonedDateTime(timeZone: TimeZoneId): ZonedDateTime; + toString(): string; } namespace PlainDate { - function from(plainDateLike: { - year: number; - month: number; - day: number; - }): PlainDate; + function from( + plainDateLike: { year: number; month: number; day: number } | string, + ): PlainDate; } namespace Now { function instant(): Instant; |
