mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-10 04:50:11 +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;
|
||
|
|
}
|