@@ -4415,12 +4415,33 @@ declare namespace Intl {
44154415
44164416 var Collator : CollatorConstructor ;
44174417
4418+ interface NumberFormatOptionsStyleRegistry {
4419+ decimal : never ;
4420+ percent : never ;
4421+ currency : never ;
4422+ }
4423+
4424+ type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry ;
4425+
4426+ interface NumberFormatOptionsCurrencyDisplayRegistry {
4427+ code : never ;
4428+ symbol : never ;
4429+ name : never ;
4430+ }
4431+
4432+ type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry ;
4433+
4434+ interface NumberFormatOptionsUseGroupingRegistry { }
4435+
4436+ type NumberFormatOptionsUseGrouping = { } extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean ;
4437+ type ResolvedNumberFormatOptionsUseGrouping = { } extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false ;
4438+
44184439 interface NumberFormatOptions {
4419- localeMatcher ?: string | undefined ;
4420- style ?: string | undefined ;
4440+ localeMatcher ?: "lookup" | "best fit" | undefined ;
4441+ style ?: NumberFormatOptionsStyle | undefined ;
44214442 currency ?: string | undefined ;
4422- currencySign ?: string | undefined ;
4423- useGrouping ?: boolean | undefined ;
4443+ currencyDisplay ?: NumberFormatOptionsCurrencyDisplay | undefined ;
4444+ useGrouping ?: NumberFormatOptionsUseGrouping | undefined ;
44244445 minimumIntegerDigits ?: number | undefined ;
44254446 minimumFractionDigits ?: number | undefined ;
44264447 maximumFractionDigits ?: number | undefined ;
@@ -4431,14 +4452,15 @@ declare namespace Intl {
44314452 interface ResolvedNumberFormatOptions {
44324453 locale : string ;
44334454 numberingSystem : string ;
4434- style : string ;
4455+ style : NumberFormatOptionsStyle ;
44354456 currency ?: string ;
4457+ currencyDisplay ?: NumberFormatOptionsCurrencyDisplay ;
44364458 minimumIntegerDigits : number ;
4437- minimumFractionDigits : number ;
4438- maximumFractionDigits : number ;
4459+ minimumFractionDigits ? : number ;
4460+ maximumFractionDigits ? : number ;
44394461 minimumSignificantDigits ?: number ;
44404462 maximumSignificantDigits ?: number ;
4441- useGrouping : boolean ;
4463+ useGrouping : ResolvedNumberFormatOptionsUseGrouping ;
44424464 }
44434465
44444466 interface NumberFormat {
0 commit comments