⬅️ Back to Table of Contents
📄 index.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
1 |
📦 Imports |
10 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/shared/watchDebounced/index.ts
📦 Imports
Name |
Source |
MaybeRefOrGetter |
vue |
WatchCallback |
vue |
WatchOptions |
vue |
WatchSource |
vue |
WatchStopHandle |
vue |
DebounceFilterOptions |
../utils |
MapOldSources |
../utils |
MapSources |
../utils |
debounceFilter |
../utils |
watchWithFilter |
../watchWithFilter |
Functions
Code
export function watchDebounced<T extends Readonly<WatchSource<unknown>[]>, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>, options?: WatchDebouncedOptions<Immediate>): WatchStopHandle
- Parameters:
sources: [...T]
cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>
options: WatchDebouncedOptions<Immediate>
- Return Type:
WatchStopHandle
Interfaces
Interface Code
export interface WatchDebouncedOptions<Immediate> extends WatchOptions<Immediate>, DebounceFilterOptions {
debounce?: MaybeRefOrGetter<number>
}
Properties
Name |
Type |
Optional |
Description |
debounce |
MaybeRefOrGetter<number> |
✓ |
|