react-image-marker icon indicating copy to clipboard operation
react-image-marker copied to clipboard

Marker : Fix typing

Open Fridus opened this issue 4 years ago • 0 comments

Hi, It solves this error:

error TS2345: Argument of type 'Marker' is not assignable to parameter of type '{ top: number; left: number; }'.
   Types of property 'top' are incompatible.
     Type 'Number' is not assignable to type 'number'.
       'number' is a primitive, but 'Number' is a wrapper object. Prefer using 'number' when possible.

Fridus avatar Nov 25 '20 14:11 Fridus