Uh oh!
There was an error while loading. Please reload this page.
Add missing JSDoc to ReadonlySet and ReadonlyMap members - #63508
Add missing JSDoc to ReadonlySet and ReadonlyMap members#63508Tushar Sharma (TxsharDev) wants to merge 1 commit into
Conversation
TypeScript Bot (typescript-bot)
commented
May 27, 2026
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
1 similar comment
TypeScript Bot (typescript-bot)
commented
May 27, 2026
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
Tushar Sharma (TxsharDev)
commented
May 27, 2026
@microsoft-github-policy-service agree |
Tushar Sharma (TxsharDev)
commented
May 27, 2026
Martin Johns (@MartinJohns) |
Ryan Cavanaugh (RyanCavanaugh)
commented
Jun 1, 2026
Closing because this duplicates work in other open PR(s) and the comments are not very good, e.g.
This isn't the place to explain that Maps have by-reference semantics in JavaScript; all objects in JS do. |
ReadonlySet and ReadonlyMap in es2015.collection.d.ts are missing JSDoc on their members. The mutable counterparts (Set, Map) have full documentation but the readonly versions have none.
This adds matching JSDoc to:
ReadonlySet<T>· forEach, has, sizeReadonlyMap<K, V>· forEach, get, has, sizeDocs are consistent with the existing comments on
Set<T>andMap<K, V>.Fixes#63481