mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Make Intl.Locale baseName and language properties required (#47720)
This commit is contained in:
parent
81d1457738
commit
3b95404f59
4
src/lib/es2020.intl.d.ts
vendored
4
src/lib/es2020.intl.d.ts
vendored
@ -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()`. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user