@cran/vue.use
Version:
Cranberry Vue Use Utilities
6 lines (5 loc) • 321 B
TypeScript
import type { MaybeRef } from "@cran/vue.ref";
import type { WatchOptions } from "@vue/runtime-dom";
export declare function useLifecycleWatch<T>(target: MaybeRef<T> | (() => T), handler: (next: T | undefined, prev: T | undefined) => void, options: WatchOptions): {
active: import("@vue/reactivity").Ref<boolean>;
};