From 998dca59f140420280803233f41707580688562c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Fri, 2 Aug 2024 06:43:22 +0200 Subject: [PATCH] feat(types): export `MultiWatchSources` type (#9563) --- packages/runtime-core/src/apiWatch.ts | 2 +- packages/runtime-core/src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index fc2c7e4497d..e25d60083db 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 b8dc513689e..0d8322f8bd1 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,