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 Alpha-2 country code type #115

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

Conversation

remy90
Copy link

@remy90 remy90 commented Jan 16, 2024

1st OSS PR, go easy on me!

Thanks for this package, I started out rolling my own validation for various phone numbers and swiftly realised this was a large task to undertake for i18n. If you consider the proposed idea below worthwhile and it's not quite there yet, let me know, I'm happy to make edits.

Problem:
Lack of type safety on available country codes. More than one type of one country code list exists, e.g. alpha-3, but only one is supported.

Proposed solution:
Adding the list of country codes as an exposed type for consumers of the package

Other:
All tests are passing
Adhered to the existing lint practices

@grantila

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.

1 participant