You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceSet<T>{/** * @returns the number of (unique) elements in Set. */readonlysize: number;}
Should be "in the Set" (or "this set", either works).
Note
I also noticed a large amount of inconsistent capitalization with regards to the @returns tags. Certain symbols (like size, has and the various ES2024 set intersection methods) all start their comments with lowercase, while others like delete capitalize the sentence like normal.
Personally, I'd prefer they be capitalized (as that seems to gel with existing uses and examples), but consistency is important regardless
⚙ Compilation target
ES2015+
⚙ Library
lib.es2015.collection.d.tsMissing / Incorrect Definition
Set#sizehas a grammar typo.Should be "in the Set" (or "this set", either works).
Note
I also noticed a large amount of inconsistent capitalization with regards to the
@returnstags. Certain symbols (likesize,hasand the various ES2024 set intersection methods) all start their comments with lowercase, while others likedeletecapitalize the sentence like normal.Personally, I'd prefer they be capitalized (as that seems to gel with existing uses and examples), but consistency is important regardless
Sample Code
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size