diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2024-01-15 01:26:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 01:26:57 +0100 |
commit | 5143b9e7d3f72e6cc23f8381295df17ff1235f53 (patch) | |
tree | 6c8a59aa1fd0feb23601e009bde04c03c66e6593 /cli/tsc/dts/lib.es2020.intl.d.ts | |
parent | f46c03d6b4a59f5f1771cb3fbec15fe034b81dde (diff) |
feat(unstable): add Temporal API support (#21738)
This commit adds support for [Stage 3 Temporal API
proposal](https://tc39.es/proposal-temporal/docs/).
The API is available when `--unstable-temporal` flag is passed.
---------
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
Diffstat (limited to 'cli/tsc/dts/lib.es2020.intl.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.es2020.intl.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.es2020.intl.d.ts b/cli/tsc/dts/lib.es2020.intl.d.ts index 8f356b489..9c41b38b2 100644 --- a/cli/tsc/dts/lib.es2020.intl.d.ts +++ b/cli/tsc/dts/lib.es2020.intl.d.ts @@ -267,7 +267,7 @@ declare namespace Intl { } interface DateTimeFormatOptions { - calendar?: string | undefined; + calendar?: string | (typeof globalThis extends { Temporal: { CalendarProtocol: infer T; }; } ? T : undefined) | undefined; dayPeriod?: "narrow" | "short" | "long" | undefined; numberingSystem?: string | undefined; |