UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

7 lines (6 loc) 361 B
import { type WatchCallback, type WatchOptions, type WatchSource } from "vue"; /** * @since 0.0.1 * @category Watch */ export declare function watchOnce<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): import("vue").WatchStopHandle;