From: Damian Głowala Date: Fri, 2 Aug 2024 04:43:22 +0000 (+0200) Subject: feat(types): export `MultiWatchSources` type (#9563) X-Git-Tag: v3.5.0-beta.1~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=998dca59f140420280803233f41707580688562c;p=thirdparty%2Fvuejs%2Fcore.git feat(types): export `MultiWatchSources` type (#9563) --- diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index fc2c7e4497..e25d60083d 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 b8dc513689..0d8322f8bd 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -224,6 +224,7 @@ export type { Reactive, } from '@vue/reactivity' export type { + MultiWatchSources, WatchEffect, WatchOptions, WatchOptionsBase,