From 485428d78b66e28ff5ed5443784fc6494ccdce50 Mon Sep 17 00:00:00 2001 From: hikmetba-bit Date: Sat, 19 Sep 2026 19:46:52 +0300 Subject: [PATCH] Remove misplaced parameter description from RegExp#source JSDoc RegExpObject.source's JSDoc ended with "The regExp argument is a Regular expression object. It can be a variable name or a literal." That sentence describes a method parameter, but source is a read-only property that takes no argument; sibling properties (global, ignoreCase, multiline) end their comment right after "Read-only." Fixes #36299 Co-Authored-By: Claude Sonnet 5 --- tsc/internal/bundled/libs/lib.es5.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsc/internal/bundled/libs/lib.es5.d.ts b/tsc/internal/bundled/libs/lib.es5.d.ts index e394111cb0e6c..f8ec8286e17d7 100644 --- a/tsc/internal/bundled/libs/lib.es5.d.ts +++ b/tsc/internal/bundled/libs/lib.es5.d.ts @@ -1001,7 +1001,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. */ readonly source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */