-
Notifications
You must be signed in to change notification settings - Fork 509
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(types): narrow string to Locale where possible #11323
Conversation
c89421e
to
dc1f184
Compare
While correcting the Lint error, I realized that more changes were needed than I thought. I think it would be meaningful to change the string type to the Locale type, but there is a concern that this change could lead to a breaking change. I would appreciate it if you could feel free to leave your comments on what you think. |
dc1f184
to
3f422d6
Compare
3f422d6
to
c11cc86
Compare
176a036
to
72829bb
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but two nits.
Thank you for your review, @caugner! |
Thank you, we're all good, and I just merged! 🎉 |
Co-authored-by: Claas Augner <caugner@mozilla.com>
Summary
Problem
As the locale key value is widely used in the project, I thought it would be better to manage it more thoroughly.
Solution
Narrow
locale
property's type fromstring
toLocale
.Before
After