From 93864e36430153a26a518149e6afd5f1b1a33708 Mon Sep 17 00:00:00 2001 From: Nilesh Das Date: Sat, 16 May 2026 10:53:12 +0530 Subject: [PATCH] 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; }