shadcn-phone-input
shadcn-phone-input copied to clipboard
Fix: Types of property 'value' are incompatible. Type 'string' is not assignable to type 'E164Number' #28
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:
- Added a type string to this line onChange?: (value: RPNInput.Value | string) => void;
- This will resolve issue #28
Others:
- Optimized Imports import { Input, type InputProps } from "@/components/ui/input";