UNPKG

342 BTypeScriptView Raw
1interface GeolocationParams {
2 onSuccess?: PositionCallback;
3 onError?: PositionErrorCallback;
4}
5export default function useGeolocation({ onSuccess, onError }?: GeolocationParams): {
6 isAvailable: boolean;
7 position: undefined;
8 getPosition: (config: any) => void;
9 watchPosition: (config: any) => () => void;
10};
11export {};