mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
More clear comment for String.prototype.match() (#36301)
* More clear comment for String.prototype.match() * Removed trailing spaces
This commit is contained in:
5
src/lib/es2015.symbol.wellknown.d.ts
vendored
5
src/lib/es2015.symbol.wellknown.d.ts
vendored
@@ -207,7 +207,8 @@ interface RegExpConstructor {
|
||||
|
||||
interface String {
|
||||
/**
|
||||
* Matches a string an object that supports being matched against, and returns an array containing the results of that search.
|
||||
* Matches a string or an object that supports being matched against, and returns an array
|
||||
* containing the results of that search, or null if no matches are found.
|
||||
* @param matcher An object that supports being matched against.
|
||||
*/
|
||||
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
|
||||
@@ -295,4 +296,4 @@ interface SetConstructor {
|
||||
}
|
||||
interface ArrayBufferConstructor {
|
||||
readonly [Symbol.species]: ArrayBufferConstructor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user