diff options
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; } /** |