diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index f12a4f2a1..7f3016e98 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -45,9 +45,9 @@ export interface WatchOptions { onTrigger?: ReactiveEffectOptions['onTrigger'] } -type StopHandle = () => void +export type StopHandle = () => void -type WatcherSource = Ref | ComputedRef | (() => T) +export type WatcherSource = Ref | ComputedRef | (() => T) type MapSources = { [K in keyof T]: T[K] extends WatcherSource ? V : never @@ -55,7 +55,7 @@ type MapSources = { export type CleanupRegistrator = (invalidate: () => void) => void -type SimpleEffect = (onCleanup: CleanupRegistrator) => void +export type SimpleEffect = (onCleanup: CleanupRegistrator) => void const invoke = (fn: Function) => fn()