onTrigger?: ReactiveEffectOptions['onTrigger']
}
-type StopHandle = () => void
+export type StopHandle = () => void
-type WatcherSource<T = any> = Ref<T> | ComputedRef<T> | (() => T)
+export type WatcherSource<T = any> = Ref<T> | ComputedRef<T> | (() => T)
type MapSources<T> = {
[K in keyof T]: T[K] extends WatcherSource<infer V> ? V : never
export type CleanupRegistrator = (invalidate: () => void) => void
-type SimpleEffect = (onCleanup: CleanupRegistrator) => void
+export type SimpleEffect = (onCleanup: CleanupRegistrator) => void
const invoke = (fn: Function) => fn()