Skip to content

Commit 998dca5

Browse files
feat(types): export MultiWatchSources type (#9563)
1 parent 22f7d96 commit 998dca5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/runtime-core/src/apiWatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function watchSyncEffect(
112112
// initial value for watchers to trigger on undefined initial values
113113
const INITIAL_WATCHER_VALUE = {}
114114

115-
type MultiWatchSources = (WatchSource<unknown> | object)[]
115+
export type MultiWatchSources = (WatchSource<unknown> | object)[]
116116

117117
// overload: single source + cb
118118
export function watch<T, Immediate extends Readonly<boolean> = false>(

packages/runtime-core/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export type {
224224
Reactive,
225225
} from '@vue/reactivity'
226226
export type {
227+
MultiWatchSources,
227228
WatchEffect,
228229
WatchOptions,
229230
WatchOptionsBase,

0 commit comments

Comments
 (0)