Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for stage 3 "set methods" proposal #57228

Closed
bakkot opened this issue Jan 30, 2024 · 0 comments · Fixed by #57230
Closed

Add types for stage 3 "set methods" proposal #57228

bakkot opened this issue Jan 30, 2024 · 0 comments · Fixed by #57230
Labels
Bug A bug in TypeScript Help Wanted You can do this
Milestone

Comments

@bakkot
Copy link
Contributor

bakkot commented Jan 30, 2024

⚙ Compilation target

esnext

⚙ Library

esnext

Missing / Incorrect Definition

Set.prototype.intersection(other)
Set.prototype.union(other)
Set.prototype.difference(other)
Set.prototype.symmetricDifference(other)
Set.prototype.isSubsetOf(other)
Set.prototype.isSupersetOf(other)
Set.prototype.isDisjointFrom(other)

Sample Code

setInstance.intersection(other)
setInstance.union(other)
setInstance.difference(other)
setInstance.symmetricDifference(other)
setInstance.isSubsetOf(other)
setInstance.isSupersetOf(other)
setInstance.isDisjointFrom(other)

Documentation Link

https://github.com/tc39/proposal-set-methods

Currently stage 3, but it's shipping in Safari and will hit stable Chrome in a couple weeks, so I'll be asking for stage 4 at the April meeting.

I'll go ahead and submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants