debouncing
Advanced tools
Comparing version 21.6.3 to 21.6.4
// typescript | ||
declare type Listener = (...args: any[]) => void; | ||
declare type Callback = () => void; | ||
/** | ||
@@ -16,3 +19,3 @@ * In the debouncing technique, no matter how many times the user fires the | ||
*/ | ||
declare function debounce(func:Function, timeout?:number):Function; | ||
declare function debounce(func: Callback, timeout?: number): Listener; | ||
@@ -34,5 +37,5 @@ // Exposed public method. | ||
*/ | ||
declare function throttle(func:Function, timeout?:number):Function; | ||
declare function throttle(func: Callback, timeout?: number): Listener; | ||
// Exposed public method. | ||
export default throttle; |
{ | ||
"name": "debouncing", | ||
"type": "module", | ||
"version": "21.6.3", | ||
"version": "21.6.4", | ||
"description": "Debouncing and throttling events module from Glize library.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://glize.js.org", |
17971
90