mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
18 lines
340 B
TypeScript
18 lines
340 B
TypeScript
declare module 'throttle-debounce' {
|
|
type throttleFn = (
|
|
delay: number,
|
|
noTrailing: boolean,
|
|
callback?: Function,
|
|
debounceMode?: boolean
|
|
) => Function;
|
|
|
|
type debounceFn = (
|
|
delay: number,
|
|
atBegin: boolean,
|
|
callback?: Function
|
|
) => Function;
|
|
|
|
const throttle: throttleFn;
|
|
const debounce: debounceFn;
|
|
}
|