@marianmeres/stuic 3.32.1 → 3.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils/debounce.d.ts
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
* input.addEventListener('input', (e) => debouncedSearch(e.target.value));
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
export declare function debounce<T extends (...args:
|
|
13
|
+
export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait: number): (...args: Parameters<T>) => void;
|
package/dist/utils/debounce.js
CHANGED
package/dist/utils/throttle.d.ts
CHANGED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* // handleScroll will be called at most once every 300ms
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export declare function throttle<T extends (...args:
|
|
20
|
+
export declare function throttle<T extends (...args: any[]) => any>(func: T, limit: number): (...args: Parameters<T>) => void;
|
package/dist/utils/throttle.js
CHANGED