Skip to content

ReadonlySet lacks documentation for has, forEach and size #63481

@Bertie690

Description

@Bertie690

⚙ Compilation target

ES2015+

⚙ Library

lib.es2015.collection.d.ts

Missing / Incorrect Definition

ReadonlySet<T> lacks documentation for forEach, has and size.

Image

These should ideally be copied from regular Set<T> for consistency.

Sample Code

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

Documentation Link

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some cases

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions