mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
17 lines
340 B
TypeScript
17 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;
|
|
}
|