diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-09-20 07:00:01 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 07:00:01 +1000 |
commit | 73e89844bab930f2a2821b059743faed8372ed14 (patch) | |
tree | 7d6e8ef6736e41fd98293d533208b5ebb404c5b6 /cli/dts/lib.es2021.intl.d.ts | |
parent | 79aee3668db88be00673e920d4924626831aff88 (diff) |
feat(cli): update to TypeScript 4.8 (#15064)
Diffstat (limited to 'cli/dts/lib.es2021.intl.d.ts')
-rw-r--r-- | cli/dts/lib.es2021.intl.d.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cli/dts/lib.es2021.intl.d.ts b/cli/dts/lib.es2021.intl.d.ts index 1e8cec37a..e66ebb1af 100644 --- a/cli/dts/lib.es2021.intl.d.ts +++ b/cli/dts/lib.es2021.intl.d.ts @@ -20,17 +20,25 @@ and limitations under the License. declare namespace Intl { + interface DateTimeFormatPartTypesRegistry { + fractionalSecond: any + } + interface DateTimeFormatOptions { formatMatcher?: "basic" | "best fit" | "best fit" | undefined; dateStyle?: "full" | "long" | "medium" | "short" | undefined; timeStyle?: "full" | "long" | "medium" | "short" | undefined; dayPeriod?: "narrow" | "short" | "long" | undefined; - fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined; + fractionalSecondDigits?: 1 | 2 | 3 | undefined; + } + + interface DateTimeRangeFormatPart extends DateTimeFormatPart { + source: "startRange" | "endRange" | "shared" } interface DateTimeFormat { formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string; - formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeFormatPart[]; + formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[]; } interface ResolvedDateTimeFormatOptions { @@ -39,7 +47,7 @@ declare namespace Intl { timeStyle?: "full" | "long" | "medium" | "short"; hourCycle?: "h11" | "h12" | "h23" | "h24"; dayPeriod?: "narrow" | "short" | "long"; - fractionalSecondDigits?: 0 | 1 | 2 | 3; + fractionalSecondDigits?: 1 | 2 | 3; } /** |