⬅️ Back to Table of Contents
📄 index.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
1 |
📦 Imports |
7 |
🟢 Vue Composition API |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/shared/watchImmediate/index.ts
📦 Imports
Name |
Source |
WatchCallback |
vue |
WatchOptions |
vue |
WatchSource |
vue |
WatchStopHandle |
vue |
MapOldSources |
../utils/types |
MapSources |
../utils/types |
watch |
vue |
Vue Composition API
Name |
Type |
Reactive Variables |
Composables |
watch |
watch |
none |
none |
Functions
Code
export function watchImmediate<T extends Readonly<WatchSource<unknown>[]>>(
source: [...T],
cb: WatchCallback<MapSources<T>, MapOldSources<T, true>>,
options?: Omit<WatchOptions<true>, 'immediate'>
): WatchStopHandle
- Parameters:
source: [...T]
cb: WatchCallback<MapSources<T>, MapOldSources<T, true>>
options: Omit<WatchOptions<true>, 'immediate'>
- Return Type:
WatchStopHandle