UNPKG

@sanp/ahooks-vue

Version:
9 lines (8 loc) 341 B
import { Ref } from 'vue-demi'; export interface ThrottleOptions { wait?: number; leading?: boolean; trailing?: boolean; } export declare type ComputedGetter<T> = (ctx?: any) => T; export declare function useThrottle<T>(value: Ref<T> | ComputedGetter<T>, options?: ThrottleOptions): Ref<import("vue-demi").UnwrapRef<T>>;