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

feat: type declarations for new Set methods #23090

Merged
merged 1 commit into from Mar 27, 2024

Conversation

dsherret
Copy link
Member

Closes #22851

/**
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
*/
union<U>(other: Set<U>): Set<T | U>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've made this specific to Set rather than a "read-only set" to avoid creating a global until this has landed in typescript.

See #22851 (comment)

@dsherret dsherret merged commit 34a651e into denoland:main Mar 27, 2024
17 checks passed
@dsherret dsherret deleted the feat_tsc_set_methods branch March 27, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update type declarations for new Set methods
2 participants