diff --git a/docs/useGeolocation.md b/docs/useGeolocation.md index 91ad346fb7..44ad2d58a8 100644 --- a/docs/useGeolocation.md +++ b/docs/useGeolocation.md @@ -23,3 +23,10 @@ const Demo = () => { ```ts useGeolocation(options: PositionOptions) ``` +## Types + +If you need to use the return type of `useGeolocation`, you can import the `GeoLocationSensorState` type directly from the hook module: + +```ts +import type { GeoLocationSensorState } from 'react-use/lib/useGeolocation'; +``` \ No newline at end of file