From 0b789ff0bc2c12e57056bd4a428bcb5bf8d5e354 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sat, 7 May 2016 16:29:45 -0700 Subject: [PATCH] Add string literal union type overload for String.normalize parameter. --- src/lib/es2015.core.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/es2015.core.d.ts b/src/lib/es2015.core.d.ts index 819d89eb0c4..71a8655350f 100644 --- a/src/lib/es2015.core.d.ts +++ b/src/lib/es2015.core.d.ts @@ -402,6 +402,14 @@ interface String { */ endsWith(searchString: string, endPosition?: number): boolean; + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; + /** * Returns the String value result of normalizing the string into the normalization form * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.