📄 index.ts
¶
📊 Analysis Summary¶
Metric | Count |
---|---|
🔧 Functions | 1 |
📦 Imports | 6 |
🟢 Vue Composition API | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/usePrevious/index.ts
📦 Imports¶
Name | Source |
---|---|
MaybeRefOrGetter |
vue |
ShallowRef |
vue |
toRef |
@vueuse/shared |
readonly |
vue |
shallowRef |
vue |
watch |
vue |
Vue Composition API¶
Name | Type | Reactive Variables | Composables |
---|---|---|---|
watch |
watch | none | none |
Functions¶
usePrevious(value: MaybeRefOrGetter<T>): Readonly<ShallowRef<T | undefined>>
¶
Code
-
JSDoc:
-
Parameters:
value: MaybeRefOrGetter<T>
- Return Type:
Readonly<ShallowRef<T | undefined>>