Skip to content

Commit

Permalink
fix(computedWithControl): source type match vue.watch (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongmoumou committed Jun 19, 2022
1 parent 9f5b9ef commit ab9d38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/computedWithControl/index.ts
Expand Up @@ -8,7 +8,7 @@ import type { Fn } from '../utils'
* @param source
* @param fn
*/
export function computedWithControl<T, S>(source: WatchSource<S>, fn: () => T) {
export function computedWithControl<T, S>(source: WatchSource<S> | WatchSource<S>[], fn: () => T) {
let v: T = undefined!
let track: Fn
let trigger: Fn
Expand Down

0 comments on commit ab9d38a

Please sign in to comment.