Update Map.clear and Set.clear jsdoc in es2015.collection.d.ts (#57661)

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
btoo
2026-02-06 16:54:32 -05:00
committed by GitHub
parent fbe22193a3
commit 2b881bc908

View File

@@ -1,4 +1,7 @@
interface Map<K, V> {
/**
* Removes all elements from the Map.
*/
clear(): void;
/**
* @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> {
* Appends a new element with a specified value to the end of the Set.
*/
add(value: T): this;
/**
* Removes all elements from the Set.
*/
clear(): void;
/**
* Removes a specified value from the Set.