@@ -520,6 +520,7 @@ export namespace Temporal {
520520 toLocaleString ( locales ?: string | string [ ] , options ?: Intl . DateTimeFormatOptions ) : string ;
521521 toJSON ( ) : string ;
522522 toString ( options ?: ToStringPrecisionOptions ) : string ;
523+ readonly [ Symbol . toStringTag ] : 'Temporal.Duration' ;
523524 }
524525
525526 /**
@@ -616,6 +617,7 @@ export namespace Temporal {
616617 toJSON ( ) : string ;
617618 toString ( options ?: InstantToStringOptions ) : string ;
618619 valueOf ( ) : never ;
620+ readonly [ Symbol . toStringTag ] : 'Temporal.Instant' ;
619621 }
620622
621623 export interface CalendarProtocol {
@@ -779,6 +781,7 @@ export namespace Temporal {
779781 fields ( fields : Iterable < string > ) : Iterable < string > ;
780782 mergeFields ( fields : Record < string , unknown > , additionalFields : Record < string , unknown > ) : Record < string , unknown > ;
781783 toString ( ) : string ;
784+ readonly [ Symbol . toStringTag ] : 'Temporal.Calendar' ;
782785 }
783786
784787 export type PlainDateLike = {
@@ -875,6 +878,7 @@ export namespace Temporal {
875878 toJSON ( ) : string ;
876879 toString ( options ?: ShowCalendarOption ) : string ;
877880 valueOf ( ) : never ;
881+ readonly [ Symbol . toStringTag ] : 'Temporal.PlainDate' ;
878882 }
879883
880884 export type PlainDateTimeLike = {
@@ -1044,6 +1048,7 @@ export namespace Temporal {
10441048 toJSON ( ) : string ;
10451049 toString ( options ?: CalendarTypeToStringOptions ) : string ;
10461050 valueOf ( ) : never ;
1051+ readonly [ Symbol . toStringTag ] : 'Temporal.PlainDateTime' ;
10471052 }
10481053
10491054 export type PlainMonthDayLike = {
@@ -1078,6 +1083,7 @@ export namespace Temporal {
10781083 toJSON ( ) : string ;
10791084 toString ( options ?: ShowCalendarOption ) : string ;
10801085 valueOf ( ) : never ;
1086+ readonly [ Symbol . toStringTag ] : 'Temporal.PlainMonthDay' ;
10811087 }
10821088
10831089 // Temporal.PlainTime's `calendar` field is a Temporal.Calendar, not a
@@ -1215,6 +1221,7 @@ export namespace Temporal {
12151221 toJSON ( ) : string ;
12161222 toString ( options ?: ToStringPrecisionOptions ) : string ;
12171223 valueOf ( ) : never ;
1224+ readonly [ Symbol . toStringTag ] : 'Temporal.PlainTime' ;
12181225 }
12191226
12201227 /**
@@ -1272,6 +1279,7 @@ export namespace Temporal {
12721279 getPossibleInstantsFor ( dateTime : Temporal . PlainDateTime | PlainDateTimeLike | string ) : Temporal . Instant [ ] ;
12731280 toString ( ) : string ;
12741281 toJSON ( ) : string ;
1282+ readonly [ Symbol . toStringTag ] : 'Temporal.TimeZone' ;
12751283 }
12761284
12771285 export type PlainYearMonthLike = {
@@ -1329,6 +1337,7 @@ export namespace Temporal {
13291337 toJSON ( ) : string ;
13301338 toString ( options ?: ShowCalendarOption ) : string ;
13311339 valueOf ( ) : never ;
1340+ readonly [ Symbol . toStringTag ] : 'Temporal.PlainYearMonth' ;
13321341 }
13331342
13341343 export type ZonedDateTimeLike = {
@@ -1492,6 +1501,7 @@ export namespace Temporal {
14921501 toJSON ( ) : string ;
14931502 toString ( options ?: ZonedDateTimeToStringOptions ) : string ;
14941503 valueOf ( ) : never ;
1504+ readonly [ Symbol . toStringTag ] : 'Temporal.ZonedDateTime' ;
14951505 }
14961506
14971507 /**
@@ -1500,7 +1510,7 @@ export namespace Temporal {
15001510 *
15011511 * See https://tc39.es/proposal-temporal/docs/now.html for more details.
15021512 */
1503- export namespace Now {
1513+ export const Now : {
15041514 /**
15051515 * Get the exact system date and time as a `Temporal.Instant`.
15061516 *
@@ -1513,7 +1523,7 @@ export namespace Temporal {
15131523 * exact time in a specific time zone, use `Temporal.Now.zonedDateTimeISO`
15141524 * or `Temporal.Now.zonedDateTime`.
15151525 * */
1516- export function instant ( ) : Temporal . Instant ;
1526+ instant : ( ) => Temporal . Instant ;
15171527
15181528 /**
15191529 * Get the current calendar date and clock time in a specific calendar and
@@ -1533,10 +1543,7 @@ export namespace Temporal {
15331543 * object implementing the time zone protocol. If omitted, the environment's
15341544 * current time zone will be used.
15351545 */
1536- export function zonedDateTime (
1537- calendar : CalendarProtocol | string ,
1538- tzLike ?: TimeZoneProtocol | string
1539- ) : Temporal . ZonedDateTime ;
1546+ zonedDateTime : ( calendar : CalendarProtocol | string , tzLike ?: TimeZoneProtocol | string ) => Temporal . ZonedDateTime ;
15401547
15411548 /**
15421549 * Get the current calendar date and clock time in a specific time zone,
@@ -1548,7 +1555,7 @@ export namespace Temporal {
15481555 * object implementing the time zone protocol. If omitted, the environment's
15491556 * current time zone will be used.
15501557 */
1551- export function zonedDateTimeISO ( tzLike ?: TimeZoneProtocol | string ) : Temporal . ZonedDateTime ;
1558+ zonedDateTimeISO : ( tzLike ?: TimeZoneProtocol | string ) => Temporal . ZonedDateTime ;
15521559
15531560 /**
15541561 * Get the current calendar date and clock time in a specific calendar and
@@ -1573,10 +1580,7 @@ export namespace Temporal {
15731580 * object implementing the time zone protocol. If omitted,
15741581 * the environment's current time zone will be used.
15751582 */
1576- export function plainDateTime (
1577- calendar : CalendarProtocol | string ,
1578- tzLike ?: TimeZoneProtocol | string
1579- ) : Temporal . PlainDateTime ;
1583+ plainDateTime : ( calendar : CalendarProtocol | string , tzLike ?: TimeZoneProtocol | string ) => Temporal . PlainDateTime ;
15801584
15811585 /**
15821586 * Get the current date and clock time in a specific time zone, using the
@@ -1593,7 +1597,7 @@ export namespace Temporal {
15931597 * object implementing the time zone protocol. If omitted, the environment's
15941598 * current time zone will be used.
15951599 */
1596- export function plainDateTimeISO ( tzLike ?: TimeZoneProtocol | string ) : Temporal . PlainDateTime ;
1600+ plainDateTimeISO : ( tzLike ?: TimeZoneProtocol | string ) => Temporal . PlainDateTime ;
15971601
15981602 /**
15991603 * Get the current calendar date in a specific calendar and time zone.
@@ -1611,10 +1615,7 @@ export namespace Temporal {
16111615 * object implementing the time zone protocol. If omitted,
16121616 * the environment's current time zone will be used.
16131617 */
1614- export function plainDate (
1615- calendar : CalendarProtocol | string ,
1616- tzLike ?: TimeZoneProtocol | string
1617- ) : Temporal . PlainDate ;
1618+ plainDate : ( calendar : CalendarProtocol | string , tzLike ?: TimeZoneProtocol | string ) => Temporal . PlainDate ;
16181619
16191620 /**
16201621 * Get the current date in a specific time zone, using the ISO 8601
@@ -1626,7 +1627,7 @@ export namespace Temporal {
16261627 * object implementing the time zone protocol. If omitted, the environment's
16271628 * current time zone will be used.
16281629 */
1629- export function plainDateISO ( tzLike ?: TimeZoneProtocol | string ) : Temporal . PlainDate ;
1630+ plainDateISO : ( tzLike ?: TimeZoneProtocol | string ) => Temporal . PlainDate ;
16301631
16311632 /**
16321633 * Get the current clock time in a specific time zone, using the ISO 8601 calendar.
@@ -1637,7 +1638,7 @@ export namespace Temporal {
16371638 * object implementing the time zone protocol. If omitted, the environment's
16381639 * current time zone will be used.
16391640 */
1640- export function plainTimeISO ( tzLike ?: TimeZoneProtocol | string ) : Temporal . PlainTime ;
1641+ plainTimeISO : ( tzLike ?: TimeZoneProtocol | string ) => Temporal . PlainTime ;
16411642
16421643 /**
16431644 * Get the environment's current time zone.
@@ -1646,8 +1647,10 @@ export namespace Temporal {
16461647 * named
16471648 * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone}.
16481649 */
1649- export function timeZone ( ) : Temporal . TimeZone ;
1650- }
1650+ timeZone : ( ) => Temporal . TimeZone ;
1651+
1652+ readonly [ Symbol . toStringTag ] : 'Temporal.Now' ;
1653+ } ;
16511654}
16521655
16531656declare namespace IntlPolyfill {
0 commit comments