react-simplikit 0.0.21 → 0.0.23

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.
@@ -12,7 +12,7 @@ type DebounceOptions = {
12
12
  * `useDebounce` is a React hook that returns a debounced version of the provided callback function.
13
13
  * It helps optimize event handling by delaying function execution and grouping multiple calls into one.
14
14
  *
15
- * @template {(...args: unknown[]) => unknown} F - The type of the callback function.
15
+ * @template {(...args: any[]) => unknown} F - The type of the callback function.
16
16
  * @param {F} callback - The function to debounce.
17
17
  * @param {number} wait - The number of milliseconds to delay the function execution.
18
18
  * @param {DebounceOptions} [options] - Configuration options for debounce behavior.
@@ -20,7 +20,7 @@ declare function throttle<F extends (...args: any[]) => void>(func: F, throttleM
20
20
  * This is useful for limiting the rate at which a function can be called,
21
21
  * such as when handling scroll or resize events.
22
22
  *
23
- * @template F - The type of the callback function.
23
+ @template {(...args: any[]) => any} F - The type of the callback function.
24
24
  * @param {F} callback - The function to be throttled.
25
25
  * @param {number} wait - The number of milliseconds to throttle invocations to.
26
26
  * @param {{ edges?: Array<'leading' | 'trailing'> }} [options] - Options to control the behavior of the throttle.
@@ -12,7 +12,7 @@ type DebounceOptions = {
12
12
  * `useDebounce` is a React hook that returns a debounced version of the provided callback function.
13
13
  * It helps optimize event handling by delaying function execution and grouping multiple calls into one.
14
14
  *
15
- * @template {(...args: unknown[]) => unknown} F - The type of the callback function.
15
+ * @template {(...args: any[]) => unknown} F - The type of the callback function.
16
16
  * @param {F} callback - The function to debounce.
17
17
  * @param {number} wait - The number of milliseconds to delay the function execution.
18
18
  * @param {DebounceOptions} [options] - Configuration options for debounce behavior.
@@ -20,7 +20,7 @@ declare function throttle<F extends (...args: any[]) => void>(func: F, throttleM
20
20
  * This is useful for limiting the rate at which a function can be called,
21
21
  * such as when handling scroll or resize events.
22
22
  *
23
- * @template F - The type of the callback function.
23
+ @template {(...args: any[]) => any} F - The type of the callback function.
24
24
  * @param {F} callback - The function to be throttled.
25
25
  * @param {number} wait - The number of milliseconds to throttle invocations to.
26
26
  * @param {{ edges?: Array<'leading' | 'trailing'> }} [options] - Options to control the behavior of the throttle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simplikit",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "main": "./dist/index.cjs",
5
5
  "type": "module",
6
6
  "sideEffects": false,