maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Interface PointAnnotationProps should have functions take an Event argument

Open timbtimbtimb opened this issue 1 year ago • 2 comments

Events function in PointAnnotationProps create a TypeScript error because their interface don't allow for any arguments to be passed

export interface PointAnnotationProps extends ViewProps {
  id: string;
  title?: string;
  snippet?: string;
  selected?: boolean;
  draggable?: boolean;
  coordinate: GeoJSON.Position;
  anchor?: Point;
  onSelected?: () => void;
  onDeselected?: () => void;
  onDragStart?: () => void;
  onDrag?: () => void;
  onDragEnd?: () => void;
}

Overload 2 of 2, '(props: PointAnnotationProps, context: any): PointAnnotation', gave the following error. Type '(e: any) => void' is not assignable to type '() => void'.ts(2769)

timbtimbtimb avatar Jan 16 '24 16:01 timbtimbtimb