NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/function/throttle.d.ts

35 lines
909 B
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { XEUtilsMethods } from '../xe-utils'
export interface ThrottleOptions {
/**
*
*/
leading?: boolean;
/**
*
*/
trailing?: boolean;
}
/**
* n n
* @param callback
* @param wait
* @param options
*/
export declare function throttle(callback: Function, wait: number, options?: ThrottleOptions): Function;
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
* n n
* @param callback
* @param wait
* @param options
*/
throttle: typeof throttle;
}
}
export default throttle