Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/get.md
1---2category: Utilities3---45# get67Shorthand for accessing `ref.value`89## Usage1011```ts12import { get } from '@vueuse/core'1314const a = ref(42)1516console.log(get(a)) // 4217```1819## Type Declarations2021```ts22/**23* Shorthand for accessing `ref.value`24*/25export declare function get<T>(ref: MaybeRef<T>): T26export declare function get<T, K extends keyof T>(27ref: MaybeRef<T>,28key: K,29): T[K]30```31