Skip to content

Commit 93864e3

Browse files
committed
docs: add JSDoc comments to ReadonlySet interface
1 parent f350b52 commit 93864e3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/lib/es2015.collection.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,17 @@ interface SetConstructor {
106106
declare var Set: SetConstructor;
107107

108108
interface ReadonlySet<T> {
109+
/**
110+
* Executes a provided function once per each value in the ReadonlySet object, in insertion order.
111+
*/
109112
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
113+
/**
114+
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
115+
*/
110116
has(value: T): boolean;
117+
/**
118+
* @returns the number of (unique) elements in Set.
119+
*/
111120
readonly size: number;
112121
}
113122

0 commit comments

Comments
 (0)