title: can't get latlng from react useref
body: <p>Recently, I just started utilizing leftlet in my React ts project. I want to implement a draggable marker on the map. However, I cannot do anything with the return ref.</p>
  <pre><code>  const [position, setPosition] = React.useState(TEMP.center);
    const markerRef = React.useRef(null);
  
    const eventHandlers = React.useMemo(
      () =&gt; ({
        dragend() {
          const marker = markerRef.current;
          if (marker != null) {
            setPosition(marker.getLatLng());
          }
        },
      }),
      []
    );
  </code></pre>
  <p>and I get this error</p>
  <pre><code>Property 'getLatLng' does not exist on type 'never'.  TS2339
  
      50 |         const marker = markerRef.current;
      51 |         if (marker != null) {
    &gt; 52 |           setPosition(marker.getLatLng());
         |                              ^
      53 |         }
      54 |       },
      55 |     }),
  </code></pre>