Microsoft/TypeScript

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

Fermée

#63 481 ouverte le 15 mai 2026

 (4 commentaires) (0 réaction) (0 personne assignée)TypeScript (13 395 forks)batch import
Domain: lib.d.tsHelp WantedPossible Improvement

Métriques du dépôt

Stars
 (108 860 étoiles)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

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

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

Documentation Link

N/A

Guide contributeur