Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make Collection and ReadonlyCollection internal#51964

Merged
jakebailey merged 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
jakebailey:core-public-1jakebailey/TypeScript:core-public-1Copy head branch name to clipboard
Jan 5, 2023
Merged

Make Collection and ReadonlyCollection internal#51964
jakebailey merged 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
jakebailey:core-public-1jakebailey/TypeScript:core-public-1Copy head branch name to clipboard

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This is a follow-up to #51439; these types were declared next to our Map and Set types, but these types are not actually used in our public API, only in a very small number of internal ones.

I don't think there's a major reason to have these in our public API, and given we've removed Map/Set (which were a part of other public APIs), now seems like a good time to drop these.

I did try removing them entirely, but doing that turned out to be tricky in a couple of places. It's probably worth reevaluating if/when we start using native iterator helpers.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 19, 2022
@DanielRosenwasser

Copy link
Copy Markdown
Member

Could you document these in https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes if necessary?

@jakebailey jakebailey added Breaking Change Would introduce errors in existing code Domain: API Relates to the public API for TypeScript labels Dec 19, 2022
@jakebailey

Copy link
Copy Markdown
Member Author

Yes, of course.

@jakebailey jakebailey merged commit 3c7660a into microsoft:main Jan 5, 2023
@jakebailey jakebailey deleted the core-public-1 branch January 5, 2023 18:22
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team Breaking Change Would introduce errors in existing code Domain: API Relates to the public API for TypeScript For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.