react-use/lib/useGeolocation.d.ts
2019-02-19 10:28:40 +00:00

25 lines
545 B
TypeScript

export interface GeoLocationSensorState {
loading: boolean;
accuracy: number;
altitude: number;
altitudeAccuracy: number;
heading: number;
latitude: number;
longitude: number;
speed: number;
timestamp: number;
error?: Error | PositionError;
}
declare const useGeolocation: () => {
loading: boolean;
accuracy: null;
altitude: null;
altitudeAccuracy: null;
heading: null;
latitude: null;
longitude: null;
speed: null;
timestamp: number;
};
export default useGeolocation;