Skip to content

Commit 2b881bc

Browse files
btoojakebailey
andauthored
Update Map.clear and Set.clear jsdoc in es2015.collection.d.ts (#57661)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
1 parent fbe2219 commit 2b881bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/es2015.collection.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
interface Map<K, V> {
2+
/**
3+
* Removes all elements from the Map.
4+
*/
25
clear(): void;
36
/**
47
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
@@ -73,7 +76,9 @@ interface Set<T> {
7376
* Appends a new element with a specified value to the end of the Set.
7477
*/
7578
add(value: T): this;
76-
79+
/**
80+
* Removes all elements from the Set.
81+
*/
7782
clear(): void;
7883
/**
7984
* Removes a specified value from the Set.

0 commit comments

Comments
 (0)