fix(48912): fractionalSecondDigits is 1, 2 or 3. (#49042)

This commit is contained in:
mstssk
2022-05-11 01:22:50 +09:00
committed by GitHub
parent 0cd551d56a
commit fcd80db0c6
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ declare namespace Intl {
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 {

2
tests/lib/lib.d.ts vendored
View File

@@ -3956,7 +3956,7 @@ declare module Intl {
hour?: "numeric" | "2-digit";
minute?: "numeric" | "2-digit";
second?: "numeric" | "2-digit";
fractionalSecondDigits?: 0 | 1 | 2 | 3;
fractionalSecondDigits?: 1 | 2 | 3;
timeZoneName?: "long" | "short";
}