@lntvow/utils 1.8.3 → 1.8.4
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/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function composeRight(...fns: ((...args: any[]) => any)[]): (...a
|
|
|
18
18
|
* @description 防抖函数
|
|
19
19
|
* @param target 目标函数
|
|
20
20
|
* @param wait 等待时间 默认 1000ms
|
|
21
|
-
* @example debounce(() => console.log('debounce'),500)
|
|
21
|
+
* @example debounce(() => console.log('debounce'), 500)
|
|
22
22
|
*/
|
|
23
23
|
export declare function debounce(target: Function, wait?: number): (...args: any[]) => void;
|
|
24
24
|
|
|
@@ -165,7 +165,7 @@ declare interface Options {
|
|
|
165
165
|
* @description 节流函数
|
|
166
166
|
* @param target 目标函数
|
|
167
167
|
* @param wait 等待时间 默认 1000ms
|
|
168
|
-
* @example throttle(() =>
|
|
168
|
+
* @example throttle(() => console.log('hello world'), 500)
|
|
169
169
|
*/
|
|
170
170
|
export declare function throttle(target: Function, wait?: number): (...args: any[]) => any;
|
|
171
171
|
|