catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.76k stars 218 forks source link

Deprecated formats raise an error #423

Closed maximevast closed 2 years ago

maximevast commented 2 years ago

Issue

National and International formats are typed as deprecated here

But they raise an error when used here

Proposed solution

Update the types so users know at build time that they are using invalid values

I can open a pull request if you are happy with this proposal.

Thanks

catamphetamine commented 2 years ago

Hmm, indeed: deprecated formats can be removed from typings.

Removed from typings. Some future release will include those. Thx.