diff --git a/packages/fineui/typescript/core/base.ts b/packages/fineui/typescript/core/base.ts index 3b4efbf36..10d9794ec 100644 --- a/packages/fineui/typescript/core/base.ts +++ b/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(func: T, wait?: number, options?: any): T; + +interface DebouncedFunc any> { + + (...args: Parameters): ReturnType | undefined; + + cancel(): void; + + flush(): ReturnType | undefined; +} + +export declare function debounce any>(func: T, wait?: number, options?: any): DebouncedFunc; export declare function throttle(func: T, wait?: number, options?: any): T;