mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
String.prototype.replace docs fix.
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
This commit is contained in:
parent
a179e910dd
commit
3cade4ca24
6
src/lib/es2015.symbol.wellknown.d.ts
vendored
6
src/lib/es2015.symbol.wellknown.d.ts
vendored
@ -219,9 +219,9 @@ interface String {
|
||||
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* Replaces one or more occurrences of substrings that match the method provided by `searchValue`.
|
||||
* @param searchValue An object that supports searching for and replacing matches within a string.
|
||||
* @param replacer A function that returns the replacement text.
|
||||
*/
|
||||
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user