Skip to content

Comments

Add Alpha-2 country code type#115

Open
remy90 wants to merge 1 commit intograntila:masterfrom
remy90:master
Open

Add Alpha-2 country code type#115
remy90 wants to merge 1 commit intograntila:masterfrom
remy90:master

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