@eggtronic/react-weather-widget
Version:
A nice weather widget component for react
17 lines (16 loc) • 554 B
TypeScript
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;