]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat(types): export `MultiWatchSources` type (#9563)
authorDamian Głowala <damian.glowala.rebkow@gmail.com>
Fri, 2 Aug 2024 04:43:22 +0000 (06:43 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 04:43:22 +0000 (12:43 +0800)
packages/runtime-core/src/apiWatch.ts
packages/runtime-core/src/index.ts

index fc2c7e4497de92c4204c361e8786610d31a9f0e5..e25d60083db38c51db49e4bf184a2b9d23bedc7c 100644 (file)
@@ -112,7 +112,7 @@ export function watchSyncEffect(
 // initial value for watchers to trigger on undefined initial values
 const INITIAL_WATCHER_VALUE = {}
 
-type MultiWatchSources = (WatchSource<unknown> | object)[]
+export type MultiWatchSources = (WatchSource<unknown> | object)[]
 
 // overload: single source + cb
 export function watch<T, Immediate extends Readonly<boolean> = false>(
index b8dc513689e13be1ce53879cb61640120879cadb..0d8322f8bd199c464e3ecbb53eb2bdfbb0e3ceae 100644 (file)
@@ -224,6 +224,7 @@ export type {
   Reactive,
 } from '@vue/reactivity'
 export type {
+  MultiWatchSources,
   WatchEffect,
   WatchOptions,
   WatchOptionsBase,