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