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,30 +9,25 @@ Shorthand for a reactive `route.query`.
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { useRouteQuery } from '@vueuse/router'
|
||||
import { useRouteQuery } from '@vueuse/router';
|
||||
|
||||
const search = useRouteQuery('search')
|
||||
const search = useRouteQuery('search');
|
||||
|
||||
const search = useRouteQuery('search', 'foo') // or with a default value
|
||||
const search = useRouteQuery('search', 'foo'); // or with a default value
|
||||
|
||||
const page = useRouteQuery('page', '1', { transform: Number }) // or transforming value
|
||||
const page = useRouteQuery('page', '1', { transform: Number }); // or transforming value
|
||||
|
||||
console.log(search.value) // route.query.search
|
||||
search.value = 'foobar' // router.replace({ query: { search: 'foobar' } })
|
||||
console.log(search.value); // route.query.search
|
||||
search.value = 'foobar'; // router.replace({ query: { search: 'foobar' } })
|
||||
```
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export declare function useRouteQuery(
|
||||
name: string,
|
||||
): Ref<undefined | null | string | string[]>
|
||||
export declare function useRouteQuery<
|
||||
T extends RouteQueryValueRaw = RouteQueryValueRaw,
|
||||
K = T,
|
||||
>(
|
||||
export declare function useRouteQuery(name: string): Ref<undefined | null | string | string[]>;
|
||||
export declare function useRouteQuery<T extends RouteQueryValueRaw = RouteQueryValueRaw, K = T>(
|
||||
name: string,
|
||||
defaultValue?: MaybeRefOrGetter<T>,
|
||||
options?: ReactiveRouteOptionsWithTransform<T, K>,
|
||||
): Ref<K>
|
||||
): Ref<K>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user