UNPKG

bits-ui

Version:

The headless components for Svelte.

17 lines (16 loc) 408 B
import type { AnyFn } from "./types.js"; type TimeoutFnOptions = { /** * Start the timer immediate after calling this function * * @default true */ immediate?: boolean; }; export declare class TimeoutFn<T extends AnyFn> { #private; constructor(cb: T, interval: number, opts?: TimeoutFnOptions); stop(): void; start(...args: Parameters<T> | []): void; } export {};