📄 useCounterStore¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 4 |
| 📦 Imports | 3 |
| 🟢 Vue Composition API | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/createInjectionState/demo/useCounterStore.ts
📦 Imports¶
| Name | Source |
|---|---|
computed |
vue |
shallowRef |
vue |
createInjectionState |
../../createInjectionState |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
computed |
computed | none | none |
Functions¶
useCounterStoreWithDefaultValue(): { count: any; double: any; increment: () => void; }¶
Returns: { count: any; double: any; increment: () => void; }
Calls:
useCounterStoreshallowRef (from vue)
Code
useCounterStoreOrThrow(): { count: any; double: any; increment: () => void; }¶
Returns: { count: any; double: any; increment: () => void; }
Calls:
useCounterStore
Code
Internal helpers¶
Declared inside another function in this file.
increment(): void¶
Returns: void
useCounterStoreWithDefaultValue.increment(): void¶
Returns: void
Generated by Syntax Scribe