From e0fa4c9435f0c9dbcbffac1bcaf0b4eef01d08ff Mon Sep 17 00:00:00 2001 From: Damian Glowala Date: Tue, 7 Nov 2023 21:16:29 +0100 Subject: [PATCH 1/3] chore(runtime-core): export `MultiWatchSources` type --- packages/runtime-core/src/apiWatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 1b85ba12d19..b566f6e233a 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: array of multiple sources + cb export function watch< From 7367b98a2816672fe521f9510ca5ee326461f2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Thu, 9 Nov 2023 09:08:07 +0100 Subject: [PATCH 2/3] chore: correct export --- packages/runtime-core/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 98aee757dab..16d2672295d 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -195,7 +195,8 @@ export type { WatchOptionsBase, WatchCallback, WatchSource, - WatchStopHandle + WatchStopHandle, + MultiWatchSources } from './apiWatch' export type { InjectionKey } from './apiInject' export type { From b4fb34eafbdfa192fae72c67f3f19ffe3d05884f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20G=C5=82owala?= Date: Fri, 29 Dec 2023 12:44:58 +0100 Subject: [PATCH 3/3] Update index.ts --- packages/runtime-core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index d0d00fa9ac8..d929c1b798f 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -220,7 +220,7 @@ export type { WatchOptionsBase, WatchCallback, WatchSource, - WatchStopHandle + WatchStopHandle, } from './apiWatch' export type { InjectionKey } from './apiInject' export type {