Skip to content

Commit 71994dd

Browse files
author
Kanchalai Tanglertsampan
committed
Adress PR: add nullability to signature
1 parent 95d4983 commit 71994dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2015.symbol.wellknown.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ interface RegExp {
176176
* that search.
177177
* @param string A string to search within.
178178
*/
179-
[Symbol.match](string: string): RegExpMatchArray;
179+
[Symbol.match](string: string): RegExpMatchArray | null;
180180

181181
/**
182182
* Replaces text in a string, using this regular expression.
@@ -230,7 +230,7 @@ interface String {
230230
* Matches a string an object that supports being matched against, and returns an array containing the results of that search.
231231
* @param matcher An object that supports being matched against.
232232
*/
233-
match(matcher: { [Symbol.match](string: string): RegExpMatchArray; }): RegExpMatchArray;
233+
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
234234

235235
/**
236236
* Replaces text in a string, using an object that supports replacement within a string.

0 commit comments

Comments
 (0)