File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,10 @@ declare namespace Intl {
223
223
) : UnicodeBCP47LocaleIdentifier [ ] ;
224
224
} ;
225
225
226
+ interface NumberFormatOptionsStyleRegistry {
227
+ unit : any ;
228
+ }
229
+
226
230
interface NumberFormatOptionsSignDisplayRegistry {
227
231
auto : any ;
228
232
never : any ;
Original file line number Diff line number Diff line change @@ -4409,13 +4409,21 @@ declare namespace Intl {
4409
4409
4410
4410
var Collator : CollatorConstructor ;
4411
4411
4412
+ interface NumberFormatOptionsStyleRegistry {
4413
+ decimal : any ;
4414
+ percent : any ;
4415
+ currency : any ;
4416
+ }
4417
+
4418
+ type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry ;
4419
+
4412
4420
interface NumberFormatOptionsUseGroupingRegistry { }
4413
4421
4414
4422
type NumberFormatOptionsUseGrouping = keyof NumberFormatOptionsUseGroupingRegistry | boolean ;
4415
4423
4416
4424
interface NumberFormatOptions {
4417
- localeMatcher ?: string | undefined ;
4418
- style ?: string | undefined ;
4425
+ localeMatcher ?: "lookup" | "best fit" | undefined ;
4426
+ style ?: NumberFormatOptionsStyle | undefined ;
4419
4427
currency ?: string | undefined ;
4420
4428
currencyDisplay ?: string | undefined ;
4421
4429
useGrouping ?: NumberFormatOptionsUseGrouping | undefined ;
@@ -4429,7 +4437,7 @@ declare namespace Intl {
4429
4437
interface ResolvedNumberFormatOptions {
4430
4438
locale : string ;
4431
4439
numberingSystem : string ;
4432
- style : string ;
4440
+ style : NumberFormatOptionsStyle ;
4433
4441
currency ?: string ;
4434
4442
currencyDisplay ?: string ;
4435
4443
minimumIntegerDigits : number ;
You can’t perform that action at this time.
0 commit comments