forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathes2021.symbol.wellknown.d.ts
More file actions
17 lines (15 loc) · 972 Bytes
/
es2021.symbol.wellknown.d.ts
File metadata and controls
17 lines (15 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// <reference lib="es2015.symbol.wellknown" />
interface String {
/**
* Replace all instances of a substring in a string, using an object that supports replacement within a string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using an object that supports replacement within a string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
}