⬅️ Back to Table of Contents
📄 index.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
1 |
📦 Imports |
10 |
🟢 Vue Composition API |
1 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/shared/watchWithFilter/index.ts
📦 Imports
Name |
Source |
WatchCallback |
vue |
WatchOptions |
vue |
WatchSource |
vue |
WatchStopHandle |
vue |
ConfigurableEventFilter |
../utils |
MapOldSources |
../utils |
MapSources |
../utils |
watch |
vue |
bypassFilter |
../utils |
createFilterWrapper |
../utils |
Vue Composition API
Name |
Type |
Reactive Variables |
Composables |
watch |
watch |
none |
none |
Functions
Code
export function watchWithFilter<T extends Readonly<WatchSource<unknown>[]>, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>, options?: WatchWithFilterOptions<Immediate>): WatchStopHandle
- Parameters:
sources: [...T]
cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>
options: WatchWithFilterOptions<Immediate>
- Return Type:
WatchStopHandle
Interfaces
Interface Code
export interface WatchWithFilterOptions<Immediate> extends WatchOptions<Immediate>, ConfigurableEventFilter {}