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

chore: remove the language collection types #3431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

remcohaszing
Copy link
Contributor

Thanks to the TypeScript satisfies operator, keys from languages can be accessed in a type-safe manner, without the need for the ILanguageCollection and INativeLanguageCollection types. This saves the need to track the languages in multiple places.

This will cause merge conflicts with existing pull requests that register a new language. I recommend to merge this last before making a new release, so only one merge conflict needs to be resolved.

Thanks to the TypeScript `satisfies` operator, keys from `languages` can
be accessed in a type-safe manner, without the need for the
`ILanguageCollection` and `INativeLanguageCollection` types. This saves
the need to track the languages in multiple places.
@remcohaszing remcohaszing changed the title chore: remove I the language collection types chore: remove the language collection types Jan 21, 2024
@robertohuertasm robertohuertasm added this to the Next milestone Jan 21, 2024
@robertohuertasm
Copy link
Member

@remcohaszing thanks for this! It's an improvement for new contributors! I'll approve and merge according to your recommendation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants