omeralpi / shadcn-phone-input

Customizable phone input component with proper validation for any country. Built on top of shadcn.
https://shadcn-phone-input.vercel.app
MIT License
422 stars 28 forks source link

Fix: Types of property 'value' are incompatible. Type 'string' is not assignable to type 'E164Number' #28 #36

Closed omunite215 closed 1 week ago

omunite215 commented 2 months ago

Fix: Types of property 'value' are incompatible. Type 'string' is not assignable to type 'E164Number' #28

It resolves the type error caused in issue #28 .

The Error Message Argument of type 'E164Number | ""' is not assignable to parameter of type 'E164Number'. Type 'string' is not assignable to type 'E164Number'. Type 'string' is not assignable to type '{ __tag: "E164Number"; }'.ts(2345)

How I Fixed it:

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shadcn-phone-input ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:26am
yokohailemariam commented 1 month ago

LGTM