Skip to content

Commit

Permalink
fix: make options useGeolocation optional
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 23, 2019
1 parent f7e7133 commit 01959a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useGeolocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface GeoLocationSensorState {
error?: Error | PositionError;
}

const useGeolocation = (options: PositionOptions): GeoLocationSensorState => {
const useGeolocation = (options?: PositionOptions): GeoLocationSensorState => {
const [state, setState] = useState<GeoLocationSensorState>({
loading: true,
accuracy: null,
Expand Down

0 comments on commit 01959a1

Please sign in to comment.