summaryrefslogtreecommitdiff
path: root/cli/dts/lib.es2020.intl.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-05-28 09:33:11 +1000
committerGitHub <noreply@github.com>2021-05-28 09:33:11 +1000
commit59237d195f6afa0d8927128751ba5ff4562d7cce (patch)
tree0aa28aff006eea751752e6160093f7631e99ad49 /cli/dts/lib.es2020.intl.d.ts
parent56f6e57438c23f75e23e28f45ad0f76b94379d59 (diff)
feat(cli): upgrade to TypeScript 4.3 (#9960)
Diffstat (limited to 'cli/dts/lib.es2020.intl.d.ts')
-rw-r--r--cli/dts/lib.es2020.intl.d.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/cli/dts/lib.es2020.intl.d.ts b/cli/dts/lib.es2020.intl.d.ts
index 1ec4628bb..2470d08b6 100644
--- a/cli/dts/lib.es2020.intl.d.ts
+++ b/cli/dts/lib.es2020.intl.d.ts
@@ -21,13 +21,12 @@ and limitations under the License.
declare namespace Intl {
/**
- * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
+ * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*
- * [Wikipedia](https://en.wikipedia.org/wiki/IETF_language_tag).
*/
- type BCP47LanguageTag = string;
+ type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
@@ -98,7 +97,7 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
*/
interface ResolvedRelativeTimeFormatOptions {
- locale: BCP47LanguageTag;
+ locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
@@ -241,7 +240,7 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
*/
new(
- locales?: BCP47LanguageTag | BCP47LanguageTag[],
+ locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
@@ -277,9 +276,9 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
*/
supportedLocalesOf(
- locales: BCP47LanguageTag | BCP47LanguageTag[],
+ locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
- ): BCP47LanguageTag[];
+ ): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {