Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useGeolocation)!: rename type GeolocationOptions to UseGeolocationOptions #1868

Merged
merged 1 commit into from Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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