File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments