UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

7 lines (6 loc) 372 B
type AsyncFunction<T, Args extends unknown[]> = (...args: Args) => T | Promise<T>; /** * Throttle an async function - called at first call and then at intervals (only the last call is executed) */ export declare function throttleId<T, Args extends unknown[]>(identifier: string, func: AsyncFunction<T, Args>, interval: number): (...args: Args) => Promise<T>; export {};