mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-12 23:36:28 -05:00
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:
7
src/lib/es2015.collection.d.ts
vendored
7
src/lib/es2015.collection.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user