vue-maplibre-gl
Version:
Vue 3 plugin for maplibre-gl
7 lines (6 loc) • 341 B
TypeScript
export declare function debounce(fn: Function, wait?: number, immediate?: boolean): {
(): void;
cancel(): void;
};
export type ThrottledFunction<T extends (...args: any) => any> = (...args: Parameters<T>) => ReturnType<T>;
export declare function throttle<T extends (...args: any) => any>(func: T, ms: number): ThrottledFunction<T>;