File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
declare namespace Intl {
2
2
interface NumberFormatOptionsUseGroupingRegistry {
3
- true : any ;
4
- false : any ;
5
3
min2 : any ;
6
4
auto : any ;
7
5
always : any ;
Original file line number Diff line number Diff line change @@ -4419,7 +4419,8 @@ declare namespace Intl {
4419
4419
4420
4420
interface NumberFormatOptionsUseGroupingRegistry { }
4421
4421
4422
- type NumberFormatOptionsUseGrouping = keyof NumberFormatOptionsUseGroupingRegistry | boolean ;
4422
+ type NumberFormatOptionsUseGrouping = { } extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean ;
4423
+ type ResolvedNumberFormatOptionsUseGrouping = { } extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGrouping ;
4423
4424
4424
4425
interface NumberFormatOptions {
4425
4426
localeMatcher ?: "lookup" | "best fit" | undefined ;
@@ -4445,7 +4446,7 @@ declare namespace Intl {
4445
4446
maximumFractionDigits : number ;
4446
4447
minimumSignificantDigits ?: number ;
4447
4448
maximumSignificantDigits ?: number ;
4448
- useGrouping : NumberFormatOptionsUseGrouping ;
4449
+ useGrouping : ResolvedNumberFormatOptionsUseGrouping ;
4449
4450
}
4450
4451
4451
4452
interface NumberFormat {
You can’t perform that action at this time.
0 commit comments