UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

16 lines (15 loc) 452 B
import { type MaybeWrapped } from "../utility"; /** * @since 0.2.0 * @category Controller */ export declare function useInterval(callback: () => void, ms?: MaybeWrapped<number>, { paused, leading, trailing, }?: { paused?: boolean | undefined; leading?: boolean | undefined; trailing?: boolean | undefined; }): { isActive: Readonly<import("vue").Ref<boolean>>; stop: () => void; start: () => void; restart: () => void; };