UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

14 lines 535 B
import { UseGeolocationReturnType } from "../types/types"; declare type UseGeoLocationOptions = PositionOptions & { when?: boolean; }; /** * useGeolocation * Gets the geolocation data as a hook * * @param {UseGeoLocationOptions} geoLocationOptions Geolocation options * @see {@link https://react-hooks.org/docs/useGeolocation} */ declare const useGeolocation: (geoLocationOptions?: UseGeoLocationOptions) => UseGeolocationReturnType | null; export { useGeolocation }; //# sourceMappingURL=useGeolocation.d.ts.map