format: apply repo prettier (3.8.1) to the folded skills tree
963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
This commit is contained in:
@@ -9,9 +9,9 @@ Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geol
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { useGeolocation } from '@vueuse/core'
|
||||
import { useGeolocation } from '@vueuse/core';
|
||||
|
||||
const { coords, locatedAt, error, resume, pause } = useGeolocation()
|
||||
const { coords, locatedAt, error, resume, pause } = useGeolocation();
|
||||
```
|
||||
|
||||
| State | Type | Description |
|
||||
@@ -31,8 +31,7 @@ const { coords, locatedAt, error, resume, pause } = useGeolocation()
|
||||
```vue
|
||||
<template>
|
||||
<UseGeolocation v-slot="{ coords: { latitude, longitude } }">
|
||||
Latitude: {{ latitude }}
|
||||
Longitude: {{ longitude }}
|
||||
Latitude: {{ latitude }} Longitude: {{ longitude }}
|
||||
</UseGeolocation>
|
||||
</template>
|
||||
```
|
||||
@@ -40,10 +39,8 @@ const { coords, locatedAt, error, resume, pause } = useGeolocation()
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export interface UseGeolocationOptions
|
||||
extends Partial<PositionOptions>,
|
||||
ConfigurableNavigator {
|
||||
immediate?: boolean
|
||||
export interface UseGeolocationOptions extends Partial<PositionOptions>, ConfigurableNavigator {
|
||||
immediate?: boolean;
|
||||
}
|
||||
/**
|
||||
* Reactive Geolocation API.
|
||||
@@ -52,35 +49,32 @@ export interface UseGeolocationOptions
|
||||
* @param options
|
||||
*/
|
||||
export declare function useGeolocation(options?: UseGeolocationOptions): {
|
||||
isSupported: ComputedRef<boolean>
|
||||
isSupported: ComputedRef<boolean>;
|
||||
coords: Ref<
|
||||
{
|
||||
readonly accuracy: number
|
||||
readonly altitude: number | null
|
||||
readonly altitudeAccuracy: number | null
|
||||
readonly heading: number | null
|
||||
readonly latitude: number
|
||||
readonly longitude: number
|
||||
readonly speed: number | null
|
||||
readonly accuracy: number;
|
||||
readonly altitude: number | null;
|
||||
readonly altitudeAccuracy: number | null;
|
||||
readonly heading: number | null;
|
||||
readonly latitude: number;
|
||||
readonly longitude: number;
|
||||
readonly speed: number | null;
|
||||
},
|
||||
| Omit<GeolocationCoordinates, "toJSON">
|
||||
| Omit<GeolocationCoordinates, 'toJSON'>
|
||||
| {
|
||||
readonly accuracy: number
|
||||
readonly altitude: number | null
|
||||
readonly altitudeAccuracy: number | null
|
||||
readonly heading: number | null
|
||||
readonly latitude: number
|
||||
readonly longitude: number
|
||||
readonly speed: number | null
|
||||
readonly accuracy: number;
|
||||
readonly altitude: number | null;
|
||||
readonly altitudeAccuracy: number | null;
|
||||
readonly heading: number | null;
|
||||
readonly latitude: number;
|
||||
readonly longitude: number;
|
||||
readonly speed: number | null;
|
||||
}
|
||||
>
|
||||
locatedAt: ShallowRef<number | null, number | null>
|
||||
error: ShallowRef<
|
||||
GeolocationPositionError | null,
|
||||
GeolocationPositionError | null
|
||||
>
|
||||
resume: () => void
|
||||
pause: () => void
|
||||
}
|
||||
export type UseGeolocationReturn = ReturnType<typeof useGeolocation>
|
||||
>;
|
||||
locatedAt: ShallowRef<number | null, number | null>;
|
||||
error: ShallowRef<GeolocationPositionError | null, GeolocationPositionError | null>;
|
||||
resume: () => void;
|
||||
pause: () => void;
|
||||
};
|
||||
export type UseGeolocationReturn = ReturnType<typeof useGeolocation>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user