shadcn-phone-input icon indicating copy to clipboard operation
shadcn-phone-input copied to clipboard

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

Open omunite215 opened this issue 7 months ago • 2 comments

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";

omunite215 avatar Jun 26 '24 12:06 omunite215