1- import type { ComputedGetter , ComputedRef , WatchOptions , WatchSource , WritableComputedOptions , WritableComputedRef } from 'vue'
1+ import type { ComputedGetter , ComputedRef , MultiWatchSources , WatchOptions , WatchSource , WritableComputedOptions , WritableComputedRef } from 'vue'
22import type { Fn } from '../utils'
33import { customRef , watch } from 'vue'
44
@@ -14,14 +14,14 @@ export interface WritableComputedRefWithControl<T> extends WritableComputedRef<T
1414
1515export type ComputedWithControlRef < T = any > = ComputedRefWithControl < T > | WritableComputedRefWithControl < T >
1616
17- export function computedWithControl < T , S > (
18- source : WatchSource < S > | WatchSource < S > [ ] ,
17+ export function computedWithControl < T > (
18+ source : WatchSource | MultiWatchSources ,
1919 fn : ComputedGetter < T > ,
2020 options ?: WatchOptions
2121) : ComputedRefWithControl < T >
2222
23- export function computedWithControl < T , S > (
24- source : WatchSource < S > | WatchSource < S > [ ] ,
23+ export function computedWithControl < T > (
24+ source : WatchSource | MultiWatchSources ,
2525 fn : WritableComputedOptions < T > ,
2626 options ?: WatchOptions
2727) : WritableComputedRefWithControl < T >
@@ -32,8 +32,8 @@ export function computedWithControl<T, S>(
3232 * @param source
3333 * @param fn
3434 */
35- export function computedWithControl < T , S > (
36- source : WatchSource < S > | WatchSource < S > [ ] ,
35+ export function computedWithControl < T > (
36+ source : WatchSource | MultiWatchSources ,
3737 fn : ComputedGetter < T > | WritableComputedOptions < T > ,
3838 options : WatchOptions = { } ,
3939) : ComputedWithControlRef < T > {
0 commit comments