⬅️ Back to Table of Contents
📄 index.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
3 |
📦 Imports |
12 |
📊 Variables & Constants |
4 |
🟢 Vue Composition API |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/router/useRouteQuery/index.ts
📦 Imports
Name |
Source |
MaybeRefOrGetter |
vue |
Ref |
vue |
Router |
vue-router |
ReactiveRouteOptionsWithTransform |
../_types |
RouteQueryValueRaw |
../_types |
tryOnScopeDispose |
@vueuse/shared |
customRef |
vue |
nextTick |
vue |
toValue |
vue |
watch |
vue |
useRoute |
vue-router |
useRouter |
vue-router |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
_queue |
WeakMap<Router, Map<string, any>> |
const |
new WeakMap<Router, Map<string, any>>() |
✗ |
_queriesQueue |
Map<string, any> |
const |
_queue.get(router)! |
✗ |
query |
any |
let/var |
route.query[name] as any |
✗ |
_trigger |
() => void |
let/var |
*not shown* |
✗ |
Vue Composition API
Name |
Type |
Reactive Variables |
Composables |
watch |
watch |
none |
none |
Functions
useRouteQuery(name: string): Ref<undefined | null | string | string[]>
Code
export function useRouteQuery(
name: string
): Ref<undefined | null | string | string[]>
- Parameters:
name: string
- Return Type:
Ref<undefined | null | string | string[]>
Code
(value: T) => value as unknown as K
- Parameters:
value: T
- Return Type:
K
Code
(value: K) => value as unknown as T
- Parameters:
value: K
- Return Type:
T