Make Intl.Locale baseName and language properties required (#47720)

This commit is contained in:
swandir 2022-02-16 02:26:25 +03:00 committed by GitHub
parent 81d1457738
commit 3b95404f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,6 +254,10 @@ declare namespace Intl {
}
interface Locale extends LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName: string;
/** The primary language subtag associated with the locale. */
language: string;
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */