Skip to content

Commit

Permalink
Add new widely supported Intl format options to externs.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597855361
  • Loading branch information
Closure Team authored and copybara-github committed Jan 12, 2024
1 parent 8c52080 commit 6cdb8a6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions externs/browser/intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ Intl.Collator.prototype.resolvedOptions = function() {};
* maximumSignificantDigits: (number|undefined),
* compactDisplay: (string|undefined), currencySign: (string|undefined),
* signDisplay: (string|undefined), unit: (string|undefined),
* unitDisplay: (string|undefined)
* unitDisplay: (string|undefined), roundingIncrement: (number|undefined),
* roundingMode: (string|undefined), roundingPriority: (string|undefined),
* trailingZeroDisplay: (string|undefined)
* }=}
* options
*/
Expand Down Expand Up @@ -139,7 +141,10 @@ Intl.NumberFormat.prototype.formatToParts = function(num) {};
* maximumSignificantDigits: number, useGrouping: boolean,
* compactDisplay: (string|undefined), currencySign: (string|undefined),
* signDisplay: (string|undefined), unit: (string|undefined),
* unitDisplay: (string|undefined)}}
* unitDisplay: (string|undefined), roundingIncrement: number,
* roundingMode: string, roundingPriority: string,
* trailingZeroDisplay: string
* }}
*/
Intl.NumberFormat.prototype.resolvedOptions = function() {};

Expand Down Expand Up @@ -251,7 +256,8 @@ Intl.DisplayNames.prototype.resolvedOptions = function() {};
* minimumFractionDigits: (number|undefined),
* maximumFractionDigits: (number|undefined),
* minimumSignificantDigits: (number|undefined),
* maximumSignificantDigits: (number|undefined)}=}
* maximumSignificantDigits: (number|undefined),
* roundingMode: (string|undefined)}=}
* options
*/
Intl.PluralRules = function(locales, options) {};
Expand All @@ -269,7 +275,7 @@ Intl.PluralRules.supportedLocalesOf = function(locales, options) {};
* @return {{locale: string, pluralCategories: Array<string>, type: string,
* minimumIntegerDigits: number, minimumFractionDigits: number,
* maximumFractionDigits: number, minimumSignificantDigits: number,
* maximumSignificantDigits: number }}
* maximumSignificantDigits: number, roundingMode: string}}
*/
Intl.PluralRules.prototype.resolvedOptions = function() {};

Expand Down

0 comments on commit 6cdb8a6

Please sign in to comment.