@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.
@@ -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: unknown[]) => unknown>(fn: T, wait: number): (...args: Parameters<T>) => void;
13
+ export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait: number): (...args: Parameters<T>) => void;
@@ -10,6 +10,7 @@
10
10
  * input.addEventListener('input', (e) => debouncedSearch(e.target.value));
11
11
  * ```
12
12
  */
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
14
  export function debounce(fn, wait) {
14
15
  let timeout = null;
15
16
  return function (...args) {
@@ -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: unknown[]) => unknown>(func: T, limit: number): (...args: Parameters<T>) => void;
20
+ export declare function throttle<T extends (...args: any[]) => any>(func: T, limit: number): (...args: Parameters<T>) => void;
@@ -17,6 +17,7 @@
17
17
  * // handleScroll will be called at most once every 300ms
18
18
  * ```
19
19
  */
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
21
  export function throttle(func, limit) {
21
22
  let lastCall = 0;
22
23
  let timeout = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.32.1",
3
+ "version": "3.32.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",