徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
659 B

5 months ago
export interface ThrottleOptions {
/**
*
*/
leading?: boolean;
/**
*
*/
trailing?: boolean;
}
/**
* n n
* @param callback
* @param wait
* @param options
*/
export declare function throttle<C>(callback: (this: C, ...args: any[]) => any, wait: number, options?: ThrottleOptions): (this: C, ...args: any[]) => any;
declare module './ctor' {
interface XEUtilsMethods {
throttle: typeof throttle;
}
}
export default throttle