Microsoft/TypeScript

`ReadonlySet` lacks documentation for `has`, `forEach` and `size`

Open

#63,481 建立於 2026年5月15日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (48,455 star) (6,726 fork)batch import
Domain: lib.d.tsHelp WantedPossible Improvement

描述

⚙ 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

https://www.typescriptlang.org/play/?#code/MYewdgzgLgBA5gLhgZQKZQDzQE4EsxwB8MAvDGKgO4roAUA2gEQBMjAugJQDcAUKJLABmSAEqoAhgBNwAGwCeaTDnxFS8XjwD0mmAAkQAN1TYYh4zHFhJMCKlQwoAC3uTcgwcdRhg9gLTwYR3EIGGlgEMpHXBl7QRgZcWAAaxCnVABbHkEAOkEQbABRRMceOFz8ouASnKCIUuzarOyIXAAvVHqW9p4gA

Documentation Link

N/A

貢獻者指南