rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
14 lines • 515 B
TypeScript
import { UseGeolocationReturnType } from "../types/types";
type UseGeoLocationOptions = PositionOptions & {
when?: boolean;
};
/**
* useGeolocation
* Gets the geolocation data as a hook
*
* @param {UseGeoLocationOptions} geoLocationOptions Geolocation options
* @see {@link https://rooks.vercel.app/docs/useGeolocation}
*/
declare const useGeolocation: (geoLocationOptions?: UseGeoLocationOptions) => UseGeolocationReturnType | null;
export { useGeolocation };
//# sourceMappingURL=useGeolocation.d.ts.map