ddan-js 3.3.3 → 3.4.0

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.
@@ -6,7 +6,7 @@ import { Ddan } from '../../../typings';
6
6
  * @param options 参数:leading 开始执行, trailing结束执行
7
7
  * @returns
8
8
  */
9
- declare function debounce(func: Ddan.Action, wait?: number, options?: Ddan.IDebounceOption): {
9
+ declare function debounce(func: Function, wait?: number, options?: Ddan.IDebounceOption): {
10
10
  (...args: any[]): any;
11
11
  cancel: () => void;
12
12
  flush: () => any;
@@ -6,7 +6,7 @@ import { Ddan } from "../../../typings";
6
6
  * @param options 参数:leading 开始执行, trailing结束执行
7
7
  * @returns
8
8
  */
9
- declare function throttle(func: Ddan.Action, wait?: number, options?: Omit<Ddan.IDebounceOption, 'maxWait'>): {
9
+ declare function throttle(func: Function, wait?: number, options?: Omit<Ddan.IDebounceOption, 'maxWait'>): {
10
10
  (...args: any[]): any;
11
11
  cancel: () => void;
12
12
  flush: () => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "3.3.3",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",