maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
7 lines (6 loc) • 347 B
TypeScript
type AsyncFunction<T, Args extends unknown[]> = (...args: Args) => T | Promise<T>;
/**
* Debounce an async function - called after a delay (only the last call is executed)
*/
export declare function debounceId<T, Args extends unknown[]>(identifier: string, func: AsyncFunction<T, Args>, delay: number): (...args: Args) => Promise<T>;
export {};