From 93864e36430153a26a518149e6afd5f1b1a33708 Mon Sep 17 00:00:00 2001 From: Nilesh Das Date: Sat, 16 May 2026 10:53:12 +0530 Subject: [PATCH 1/2] docs: add JSDoc comments to ReadonlySet interface --- src/lib/es2015.collection.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index 43129531845e4..f0297a73a048a 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -106,8 +106,17 @@ interface SetConstructor { declare var Set: SetConstructor; interface ReadonlySet { + /** + * Executes a provided function once per each value in the ReadonlySet object, in insertion order. + */ forEach(callbackfn: (value: T, value2: T, set: ReadonlySet) => void, thisArg?: any): void; + /** + * @returns a boolean indicating whether an element with the specified value exists in the Set or not. + */ has(value: T): boolean; + /** + * @returns the number of (unique) elements in Set. + */ readonly size: number; } From fd961e4f87263c3716c6194eccd1545d134a8db5 Mon Sep 17 00:00:00 2001 From: Nilesh Das Date: Tue, 19 May 2026 23:27:50 +0530 Subject: [PATCH 2/2] Fixed grammar typo - 'in the Set' --- src/lib/es2015.collection.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index 101f5a0de1d91..cbc5219f5d79b 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -115,7 +115,7 @@ interface ReadonlySet { */ has(value: T): boolean; /** - * @returns the number of (unique) elements in Set. + * @returns the number of (unique) elements in the Set. */ readonly size: number; }