You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the useGeolocation hook and I wanted to use the return type GeoLocationSensorState.
However I couldn't seem to import it although I see it in the source code.
import{ useGeolocation, GeoLocationSensorState } from 'react-use';
ChatGPT helped me realize I should import types directly from
import type { GeoLocationSensorState } from 'react-use/lib/useGeolocation';