We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c740d0b + cd82526 commit c56eb04Copy full SHA for c56eb04
src/index.d.ts
@@ -0,0 +1,8 @@
1
+declare module "react-hook-geolocation" {
2
+ export interface EnrichedGeolocationCoordinates extends GeolocationCoordinates {
3
+ timestamp: GeolocationPosition["timestamp"] | null;
4
+ error: GeolocationPositionError | null;
5
+ }
6
+
7
+ export default function useGeolocation(positionOptions?: PositionOptions, callback?: (geolocation: EnrichedGeolocationCoordinates) => void): EnrichedGeolocationCoordinates;
8
+}
0 commit comments