mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
25 lines
545 B
TypeScript
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;
|