From 98f04e224fa4c1b8f6a7cb84b900b64ef65dcf43 Mon Sep 17 00:00:00 2001 From: Jujhar Singh Date: Tue, 25 May 2021 08:05:27 -0700 Subject: [PATCH] IntelliSense doc string.replace typo (#41385) * Fix IntelliSense doc string.replace typo * Update IntelliSense doc string.replace * Update string.replace doc text * Revert "Fix IntelliSense doc string.replace typo" This reverts commit 4220ec8a9487a0854aea67ed0e0805cf8f97c690. * Reworded string.replace doc text * Fix doc string.replace text --- src/lib/es2015.symbol.wellknown.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/es2015.symbol.wellknown.d.ts b/src/lib/es2015.symbol.wellknown.d.ts index 284c61f61c3..8911baa9bb9 100644 --- a/src/lib/es2015.symbol.wellknown.d.ts +++ b/src/lib/es2015.symbol.wellknown.d.ts @@ -219,9 +219,9 @@ interface String { match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; /** - * Replaces text in a string, using an object that supports replacement within a string. - * @param searchValue A object can search for and replace matches within a string. - * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + * Replaces first match with string or all matches with RegExp. + * @param searchValue A string or RegExp search value. + * @param replaceValue A string containing the text to replace for match. */ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;