diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index bc10547824e..037fd4568b0 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -112,7 +112,7 @@ export function watchSyncEffect( // initial value for watchers to trigger on undefined initial values const INITIAL_WATCHER_VALUE = {} -type MultiWatchSources = (WatchSource | object)[] +export type MultiWatchSources = (WatchSource | object)[] // overload: single source + cb export function watch = false>( diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 94b2985040a..43c7b2d3c51 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -214,6 +214,7 @@ export type { Raw, } from '@vue/reactivity' export type { + MultiWatchSources, WatchEffect, WatchOptions, WatchOptionsBase,