ahooks-vue
Version:
10 lines (9 loc) • 346 B
TypeScript
import { Ref } from 'vue-demi';
export interface DebounceOptions {
wait?: number;
leading?: boolean;
trailing?: boolean;
}
declare type ComputedGetter<T> = (ctx?: any) => T;
export declare function useDebounce<T>(value: Ref<T> | ComputedGetter<T>, options?: DebounceOptions): Ref<import("vue-demi").UnwrapRef<T>>;
export {};