es-toolkit 1.41.0-dev.1673 → 1.41.0-dev.1674
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/function/debounce.d.mts +1 -1
- package/dist/function/debounce.d.ts +1 -1
- package/dist/function/index.d.mts +2 -2
- package/dist/function/index.d.ts +2 -2
- package/dist/function/throttle.d.mts +2 -2
- package/dist/function/throttle.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -71,4 +71,4 @@ interface DebouncedFunction<F extends (...args: any[]) => void> {
|
|
|
71
71
|
*/
|
|
72
72
|
declare function debounce<F extends (...args: any[]) => void>(func: F, debounceMs: number, { signal, edges }?: DebounceOptions): DebouncedFunction<F>;
|
|
73
73
|
|
|
74
|
-
export { type DebouncedFunction, debounce };
|
|
74
|
+
export { type DebounceOptions, type DebouncedFunction, debounce };
|
|
@@ -71,4 +71,4 @@ interface DebouncedFunction<F extends (...args: any[]) => void> {
|
|
|
71
71
|
*/
|
|
72
72
|
declare function debounce<F extends (...args: any[]) => void>(func: F, debounceMs: number, { signal, edges }?: DebounceOptions): DebouncedFunction<F>;
|
|
73
73
|
|
|
74
|
-
export { type DebouncedFunction, debounce };
|
|
74
|
+
export { type DebounceOptions, type DebouncedFunction, debounce };
|
|
@@ -4,7 +4,7 @@ export { asyncNoop } from './asyncNoop.mjs';
|
|
|
4
4
|
export { before } from './before.mjs';
|
|
5
5
|
export { curry } from './curry.mjs';
|
|
6
6
|
export { curryRight } from './curryRight.mjs';
|
|
7
|
-
export { DebouncedFunction, debounce } from './debounce.mjs';
|
|
7
|
+
export { DebounceOptions, DebouncedFunction, debounce } from './debounce.mjs';
|
|
8
8
|
export { flow } from './flow.mjs';
|
|
9
9
|
export { flowRight } from './flowRight.mjs';
|
|
10
10
|
export { identity } from './identity.mjs';
|
|
@@ -17,5 +17,5 @@ export { partialRight } from './partialRight.mjs';
|
|
|
17
17
|
export { rest } from './rest.mjs';
|
|
18
18
|
export { retry } from './retry.mjs';
|
|
19
19
|
export { spread } from './spread.mjs';
|
|
20
|
-
export { ThrottledFunction, throttle } from './throttle.mjs';
|
|
20
|
+
export { ThrottleOptions, ThrottledFunction, throttle } from './throttle.mjs';
|
|
21
21
|
export { unary } from './unary.mjs';
|
package/dist/function/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { asyncNoop } from './asyncNoop.js';
|
|
|
4
4
|
export { before } from './before.js';
|
|
5
5
|
export { curry } from './curry.js';
|
|
6
6
|
export { curryRight } from './curryRight.js';
|
|
7
|
-
export { DebouncedFunction, debounce } from './debounce.js';
|
|
7
|
+
export { DebounceOptions, DebouncedFunction, debounce } from './debounce.js';
|
|
8
8
|
export { flow } from './flow.js';
|
|
9
9
|
export { flowRight } from './flowRight.js';
|
|
10
10
|
export { identity } from './identity.js';
|
|
@@ -17,5 +17,5 @@ export { partialRight } from './partialRight.js';
|
|
|
17
17
|
export { rest } from './rest.js';
|
|
18
18
|
export { retry } from './retry.js';
|
|
19
19
|
export { spread } from './spread.js';
|
|
20
|
-
export { ThrottledFunction, throttle } from './throttle.js';
|
|
20
|
+
export { ThrottleOptions, ThrottledFunction, throttle } from './throttle.js';
|
|
21
21
|
export { unary } from './unary.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface ThrottleOptions {
|
|
2
2
|
/**
|
|
3
|
-
* An optional AbortSignal to cancel the
|
|
3
|
+
* An optional AbortSignal to cancel the throttled function.
|
|
4
4
|
*/
|
|
5
5
|
signal?: AbortSignal;
|
|
6
6
|
/**
|
|
@@ -45,4 +45,4 @@ interface ThrottledFunction<F extends (...args: any[]) => void> {
|
|
|
45
45
|
*/
|
|
46
46
|
declare function throttle<F extends (...args: any[]) => void>(func: F, throttleMs: number, { signal, edges }?: ThrottleOptions): ThrottledFunction<F>;
|
|
47
47
|
|
|
48
|
-
export { type ThrottledFunction, throttle };
|
|
48
|
+
export { type ThrottleOptions, type ThrottledFunction, throttle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface ThrottleOptions {
|
|
2
2
|
/**
|
|
3
|
-
* An optional AbortSignal to cancel the
|
|
3
|
+
* An optional AbortSignal to cancel the throttled function.
|
|
4
4
|
*/
|
|
5
5
|
signal?: AbortSignal;
|
|
6
6
|
/**
|
|
@@ -45,4 +45,4 @@ interface ThrottledFunction<F extends (...args: any[]) => void> {
|
|
|
45
45
|
*/
|
|
46
46
|
declare function throttle<F extends (...args: any[]) => void>(func: F, throttleMs: number, { signal, edges }?: ThrottleOptions): ThrottledFunction<F>;
|
|
47
47
|
|
|
48
|
-
export { type ThrottledFunction, throttle };
|
|
48
|
+
export { type ThrottleOptions, type ThrottledFunction, throttle };
|
package/dist/index.d.mts
CHANGED
|
@@ -72,7 +72,7 @@ export { asyncNoop } from './function/asyncNoop.mjs';
|
|
|
72
72
|
export { before } from './function/before.mjs';
|
|
73
73
|
export { curry } from './function/curry.mjs';
|
|
74
74
|
export { curryRight } from './function/curryRight.mjs';
|
|
75
|
-
export { DebouncedFunction, debounce } from './function/debounce.mjs';
|
|
75
|
+
export { DebounceOptions, DebouncedFunction, debounce } from './function/debounce.mjs';
|
|
76
76
|
export { flow } from './function/flow.mjs';
|
|
77
77
|
export { flowRight } from './function/flowRight.mjs';
|
|
78
78
|
export { identity } from './function/identity.mjs';
|
|
@@ -85,7 +85,7 @@ export { partialRight } from './function/partialRight.mjs';
|
|
|
85
85
|
export { rest } from './function/rest.mjs';
|
|
86
86
|
export { retry } from './function/retry.mjs';
|
|
87
87
|
export { spread } from './function/spread.mjs';
|
|
88
|
-
export { ThrottledFunction, throttle } from './function/throttle.mjs';
|
|
88
|
+
export { ThrottleOptions, ThrottledFunction, throttle } from './function/throttle.mjs';
|
|
89
89
|
export { unary } from './function/unary.mjs';
|
|
90
90
|
export { clamp } from './math/clamp.mjs';
|
|
91
91
|
export { inRange } from './math/inRange.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export { asyncNoop } from './function/asyncNoop.js';
|
|
|
72
72
|
export { before } from './function/before.js';
|
|
73
73
|
export { curry } from './function/curry.js';
|
|
74
74
|
export { curryRight } from './function/curryRight.js';
|
|
75
|
-
export { DebouncedFunction, debounce } from './function/debounce.js';
|
|
75
|
+
export { DebounceOptions, DebouncedFunction, debounce } from './function/debounce.js';
|
|
76
76
|
export { flow } from './function/flow.js';
|
|
77
77
|
export { flowRight } from './function/flowRight.js';
|
|
78
78
|
export { identity } from './function/identity.js';
|
|
@@ -85,7 +85,7 @@ export { partialRight } from './function/partialRight.js';
|
|
|
85
85
|
export { rest } from './function/rest.js';
|
|
86
86
|
export { retry } from './function/retry.js';
|
|
87
87
|
export { spread } from './function/spread.js';
|
|
88
|
-
export { ThrottledFunction, throttle } from './function/throttle.js';
|
|
88
|
+
export { ThrottleOptions, ThrottledFunction, throttle } from './function/throttle.js';
|
|
89
89
|
export { unary } from './function/unary.js';
|
|
90
90
|
export { clamp } from './math/clamp.js';
|
|
91
91
|
export { inRange } from './math/inRange.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.41.0-dev.
|
|
3
|
+
"version": "1.41.0-dev.1674+a61e107b",
|
|
4
4
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
5
5
|
"homepage": "https://es-toolkit.dev",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|