We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8b7ad5 commit 3980ad6Copy full SHA for 3980ad6
packages/runtime-core/src/apiWatch.ts
@@ -45,17 +45,17 @@ export interface WatchOptions {
45
onTrigger?: ReactiveEffectOptions['onTrigger']
46
}
47
48
-type StopHandle = () => void
+export type StopHandle = () => void
49
50
-type WatcherSource<T = any> = Ref<T> | ComputedRef<T> | (() => T)
+export type WatcherSource<T = any> = Ref<T> | ComputedRef<T> | (() => T)
51
52
type MapSources<T> = {
53
[K in keyof T]: T[K] extends WatcherSource<infer V> ? V : never
54
55
56
export type CleanupRegistrator = (invalidate: () => void) => void
57
58
-type SimpleEffect = (onCleanup: CleanupRegistrator) => void
+export type SimpleEffect = (onCleanup: CleanupRegistrator) => void
59
60
const invoke = (fn: Function) => fn()
61
0 commit comments