Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/useGeolocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```