@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
10 lines (9 loc) • 404 B
TypeScript
/**
* Throttles a function and delays its execution, so it's only called at most
* once within a given time period.
*
* @param {Function} fn The function to throttle.
* @param {number} wait The amount of time that must pass before the function can be called again.
* @return {Function} The throttled function.
*/
export declare const throttle: (fn: Function, wait: number) => (this: any) => void;