Microsoft/TypeScript
View on GitHub`ReadonlySet` lacks documentation for `has`, `forEach` and `size`
Open
#63481 opened on May 15, 2026
Domain: lib.d.tsHelp WantedPossible Improvement
Description
⚙ Compilation target
ES2015+
⚙ Library
lib.es2015.collection.d.ts
Missing / Incorrect Definition
ReadonlySet<T> lacks documentation for forEach, has and size.
These should ideally be copied from regular Set<T> for consistency.
Sample Code
Documentation Link
N/A