You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Intl.Locale parameter type to toLocale[X]String signatures. (microsoft#47811)
* add Intl.Locale param type to locales argument in BigInt, Number, and Date methods
* update baselines
* add test for locales object arguments
* fix indentation
Copy file name to clipboardExpand all lines: src/lib/es2020.bigint.d.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
/// <reference lib="es2020.intl" />
2
+
1
3
interfaceBigIntToLocaleStringOptions{
2
4
/**
3
5
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
@@ -92,7 +94,7 @@ interface BigInt {
92
94
toString(radix?: number): string;
93
95
94
96
/** Returns a string representation appropriate to the host environment's current locale. */
* Converts a date and time to a string by using the current or specified locale.
6
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
7
+
* @param options An object that contains one or more properties that specify comparison options.
* Converts a date to a string by using the current or specified locale.
13
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
14
+
* @param options An object that contains one or more properties that specify comparison options.
* Converts a time to a string by using the current or specified locale.
20
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
21
+
* @param options An object that contains one or more properties that specify comparison options.
* Converts a number to a string by using the current or specified locale.
6
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
7
+
* @param options An object that contains one or more properties that specify comparison options.
0 commit comments