feat(develop): added phonenumber type validator to IsPhoneNumber.ts#2557
feat(develop): added phonenumber type validator to IsPhoneNumber.ts#2557Sylar-3 wants to merge 5 commits intotypestack:developfrom
Conversation
|
Please check this change and let me know if anything needs to be modified. |
|
Hi @Sylar-3, what is the benefit of defining types inside the library instead of using original types from |
Thanks @shevchenkonik for your insight, actually there is no value in this as you just said, but this will make it easier for developers to check these types in the validator itself rather than going to the library and search for them. if there is any other question or issue please let me know since this pull request might help a lot in validating some APIs I'm using. |
Description
Added new feature to check the phonenumber type using .getType() method from libphonenumber-js
Checklist
Update index.md)develop)