mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update String#toLocale{Lower,Upper}Case methods (#32961)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
634beb5332
commit
5ae286329f
Vendored
+2
-2
@@ -466,13 +466,13 @@ interface String {
|
||||
toLowerCase(): string;
|
||||
|
||||
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
|
||||
toLocaleLowerCase(): string;
|
||||
toLocaleLowerCase(locales?: string | string[]): string;
|
||||
|
||||
/** Converts all the alphabetic characters in a string to uppercase. */
|
||||
toUpperCase(): string;
|
||||
|
||||
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
|
||||
toLocaleUpperCase(): string;
|
||||
toLocaleUpperCase(locales?: string | string[]): string;
|
||||
|
||||
/** Removes the leading and trailing white space and line terminator characters from a string. */
|
||||
trim(): string;
|
||||
|
||||
@@ -36,9 +36,9 @@ genericFunction(genericObject, ({greeting}) => {
|
||||
var s = greeting.toLocaleLowerCase(); // Greeting should be of type string
|
||||
>s : string
|
||||
>greeting.toLocaleLowerCase() : string
|
||||
>greeting.toLocaleLowerCase : () => string
|
||||
>greeting.toLocaleLowerCase : (locales?: string | string[]) => string
|
||||
>greeting : string
|
||||
>toLocaleLowerCase : () => string
|
||||
>toLocaleLowerCase : (locales?: string | string[]) => string
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ if (typeof prop1 === "string" && prop1.toLocaleLowerCase()) { }
|
||||
>prop1 : string | number
|
||||
>"string" : "string"
|
||||
>prop1.toLocaleLowerCase() : string
|
||||
>prop1.toLocaleLowerCase : () => string
|
||||
>prop1.toLocaleLowerCase : (locales?: string | string[]) => string
|
||||
>prop1 : string
|
||||
>toLocaleLowerCase : () => string
|
||||
>toLocaleLowerCase : (locales?: string | string[]) => string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user