diff --git a/packages/shared/watchAtMost/index.ts b/packages/shared/watchAtMost/index.ts index b77062bf332..ddbc1c87fbc 100644 --- a/packages/shared/watchAtMost/index.ts +++ b/packages/shared/watchAtMost/index.ts @@ -14,7 +14,7 @@ export interface WatchAtMostReturn { } // overlads -export function watchAtMost[]>, Immediate extends Readonly = false>(source: T, cb: WatchCallback, MapOldSources>, options: WatchAtMostOptions): WatchAtMostReturn +export function watchAtMost[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options: WatchAtMostOptions): WatchAtMostReturn export function watchAtMost = false>(sources: WatchSource, cb: WatchCallback, options: WatchAtMostOptions): WatchAtMostReturn diff --git a/packages/shared/watchDebounced/index.ts b/packages/shared/watchDebounced/index.ts index 729738d7d8d..42b74cc27c5 100644 --- a/packages/shared/watchDebounced/index.ts +++ b/packages/shared/watchDebounced/index.ts @@ -8,7 +8,7 @@ export interface WatchDebouncedOptions extends WatchOptions[]>, Immediate extends Readonly = false>(sources: T, cb: WatchCallback, MapOldSources>, options?: WatchDebouncedOptions): WatchStopHandle +export function watchDebounced[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchDebouncedOptions): WatchStopHandle export function watchDebounced = false>(source: WatchSource, cb: WatchCallback, options?: WatchDebouncedOptions): WatchStopHandle export function watchDebounced = false>(source: T, cb: WatchCallback, options?: WatchDebouncedOptions): WatchStopHandle diff --git a/packages/shared/watchIgnorable/index.ts b/packages/shared/watchIgnorable/index.ts index 65902d772a2..8b6fb49f440 100644 --- a/packages/shared/watchIgnorable/index.ts +++ b/packages/shared/watchIgnorable/index.ts @@ -16,7 +16,7 @@ export interface WatchIgnorableReturn { stop: WatchStopHandle } -export function watchIgnorable[]>, Immediate extends Readonly = false>(sources: T, cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchIgnorableReturn +export function watchIgnorable[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchIgnorableReturn export function watchIgnorable = false>(source: WatchSource, cb: WatchCallback, options?: WatchWithFilterOptions): WatchIgnorableReturn export function watchIgnorable = false>(source: T, cb: WatchCallback, options?: WatchWithFilterOptions): WatchIgnorableReturn diff --git a/packages/shared/watchOnce/index.ts b/packages/shared/watchOnce/index.ts index d6fead60585..a9df22e7497 100644 --- a/packages/shared/watchOnce/index.ts +++ b/packages/shared/watchOnce/index.ts @@ -3,7 +3,7 @@ import { nextTick, watch } from 'vue-demi' import type { MapOldSources, MapSources } from '../utils' // overlads -export function watchOnce[]>, Immediate extends Readonly = false>(source: T, cb: WatchCallback, MapOldSources>, options?: WatchOptions): void +export function watchOnce[]>, Immediate extends Readonly = false>(source: [...T], cb: WatchCallback, MapOldSources>, options?: WatchOptions): void export function watchOnce = false>(sources: WatchSource, cb: WatchCallback, options?: WatchOptions): void diff --git a/packages/shared/watchPausable/index.ts b/packages/shared/watchPausable/index.ts index 424c3da7331..71f9fcc24d7 100644 --- a/packages/shared/watchPausable/index.ts +++ b/packages/shared/watchPausable/index.ts @@ -9,7 +9,7 @@ export interface WatchPausableReturn extends Pausable { } // overlads -export function watchPausable[]>, Immediate extends Readonly = false>(sources: T, cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchPausableReturn +export function watchPausable[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchPausableReturn export function watchPausable = false>(source: WatchSource, cb: WatchCallback, options?: WatchWithFilterOptions): WatchPausableReturn export function watchPausable = false>(source: T, cb: WatchCallback, options?: WatchWithFilterOptions): WatchPausableReturn diff --git a/packages/shared/watchThrottled/index.ts b/packages/shared/watchThrottled/index.ts index 547a3b27bc8..53a0eb23570 100644 --- a/packages/shared/watchThrottled/index.ts +++ b/packages/shared/watchThrottled/index.ts @@ -10,7 +10,7 @@ export interface WatchThrottledOptions extends WatchOptions[]>, Immediate extends Readonly = false>(sources: T, cb: WatchCallback, MapOldSources>, options?: WatchThrottledOptions): WatchStopHandle +export function watchThrottled[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchThrottledOptions): WatchStopHandle export function watchThrottled = false>(source: WatchSource, cb: WatchCallback, options?: WatchThrottledOptions): WatchStopHandle export function watchThrottled = false>(source: T, cb: WatchCallback, options?: WatchThrottledOptions): WatchStopHandle diff --git a/packages/shared/watchWithFilter/index.ts b/packages/shared/watchWithFilter/index.ts index 18966fb6189..f4b70a984df 100644 --- a/packages/shared/watchWithFilter/index.ts +++ b/packages/shared/watchWithFilter/index.ts @@ -6,7 +6,7 @@ import { bypassFilter, createFilterWrapper } from '../utils' export interface WatchWithFilterOptions extends WatchOptions, ConfigurableEventFilter {} // overlads -export function watchWithFilter[]>, Immediate extends Readonly = false>(sources: T, cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchStopHandle +export function watchWithFilter[]>, Immediate extends Readonly = false>(sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchWithFilterOptions): WatchStopHandle export function watchWithFilter = false>(source: WatchSource, cb: WatchCallback, options?: WatchWithFilterOptions): WatchStopHandle export function watchWithFilter = false>(source: T, cb: WatchCallback, options?: WatchWithFilterOptions): WatchStopHandle