From 8c84badc9390572e688b57e1c2094f3bade7a510 Mon Sep 17 00:00:00 2001 From: btoo <8883465+btoo@users.noreply.github.com> Date: Wed, 6 Mar 2024 09:27:05 -0800 Subject: [PATCH 1/3] Update Map.clear and Set.clear jsdoc in es2015.collection.d.ts --- src/lib/es2015.collection.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index e88f0d4c3b405..42268d830b69d 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -1,4 +1,7 @@ interface Map { + /** + * Removes all elements from this 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 { * Appends a new element with a specified value to the end of the Set. */ add(value: T): this; - + /** + * Removes all elements from this set + */ clear(): void; /** * Removes a specified value from the Set. From d0a99ed8c195f5997e2700bee156ca7d8a678a77 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:37:42 -0800 Subject: [PATCH 2/3] Apply suggestions from code review --- src/lib/es2015.collection.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index 42268d830b69d..cda256ae4246e 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -1,6 +1,6 @@ interface Map { /** - * Removes all elements from this map + * Removes all elements from the Set. */ clear(): void; /** @@ -77,7 +77,7 @@ interface Set { */ add(value: T): this; /** - * Removes all elements from this set + * Removes all elements from the Set. */ clear(): void; /** From 2a8678c02339ce7f9d07bcf9085f53f30e974b06 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:38:52 -0800 Subject: [PATCH 3/3] Apply suggestion from @jakebailey --- src/lib/es2015.collection.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index cda256ae4246e..43129531845e4 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -1,6 +1,6 @@ interface Map { /** - * Removes all elements from the Set. + * Removes all elements from the Map. */ clear(): void; /**