Browse Source

Pull request #3714: 无JIRA 类型

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '6a9e826012fe35ce43f0dd1570539df8309a3a84':
  无JIRA  类型
research/test
Dailer-刘荣歆 1 year ago
parent
commit
1ae50cd1f6
  1. 12
      packages/fineui/typescript/core/base.ts

12
packages/fineui/typescript/core/base.ts

@ -320,7 +320,17 @@ export declare function once(func: Function): Function;
export declare function partial(func: Function, ...partials: any): Function;
export declare function debounce<T extends Function>(func: T, wait?: number, options?: any): T;
interface DebouncedFunc<T extends (...args: any[]) => any> {
(...args: Parameters<T>): ReturnType<T> | undefined;
cancel(): void;
flush(): ReturnType<T> | undefined;
}
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, options?: any): DebouncedFunc<T>;
export declare function throttle<T extends Function>(func: T, wait?: number, options?: any): T;

Loading…
Cancel
Save