|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import { LodashDebounce } from 'lodash/fp'; |
|
|
|
|
import { Widget } from "./widget"; |
|
|
|
|
|
|
|
|
|
type UnionToIntersection<Union> = ( |
|
|
|
@ -320,7 +321,14 @@ 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; |
|
|
|
|
// from @types/lodash
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|