UNPKG

@eggtronic/react-weather-widget

Version:
17 lines (16 loc) 554 B
export interface GeoLocationSensorState { loading: boolean; accuracy: number | null; altitude: number | null; altitudeAccuracy: number | null; heading: number | null; latitude: number | null; longitude: number | null; speed: number | null; timestamp: number | null; error?: Error | PositionError; once: boolean; shouldDetectLocation: boolean; } declare const useGeolocation: (hasGeo: boolean, options?: PositionOptions | undefined) => GeoLocationSensorState; export default useGeolocation;