Skip to content

Commit

Permalink
fix(useGeolocation)!: rename type GeolocationOptions to `UseGeoloca…
Browse files Browse the repository at this point in the history
…tionOptions` (#1868)
  • Loading branch information
okxiaoliang4 committed Jul 12, 2022
1 parent 4ff5599 commit 48f797c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/useGeolocation/component.ts
@@ -1,8 +1,8 @@
import { defineComponent, reactive } from 'vue-demi'
import type { GeolocationOptions } from '@vueuse/core'
import type { UseGeolocationOptions } from '@vueuse/core'
import { useGeolocation } from '@vueuse/core'

export const UseGeolocation = defineComponent<GeolocationOptions>({
export const UseGeolocation = defineComponent<UseGeolocationOptions>({
name: 'UseGeolocation',
props: ['enableHighAccuracy', 'maximumAge', 'timeout', 'navigator'] as unknown as undefined,
setup(props, { slots }) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/useGeolocation/index.ts
Expand Up @@ -7,15 +7,15 @@ import type { ConfigurableNavigator } from '../_configurable'
import { defaultNavigator } from '../_configurable'
import { useSupported } from '../useSupported'

export interface GeolocationOptions extends Partial<PositionOptions>, ConfigurableNavigator {}
export interface UseGeolocationOptions extends Partial<PositionOptions>, ConfigurableNavigator {}

/**
* Reactive Geolocation API.
*
* @see https://vueuse.org/useGeolocation
* @param options
*/
export function useGeolocation(options: GeolocationOptions = {}) {
export function useGeolocation(options: UseGeolocationOptions = {}) {
const {
enableHighAccuracy = true,
maximumAge = 30000,
Expand Down

0 comments on commit 48f797c

Please sign in to comment.