graphic-pixi/lib/utils/debounce.d.ts

6 lines
288 B
TypeScript
Raw Normal View History

2023-12-12 17:31:07 +08:00
export interface DebouncedFunction<F extends (...args: any[]) => any> {
(context: ThisParameterType<F>, ...args: Parameters<F>): void;
cancel: () => void;
}
export declare function debounce<F extends (...args: Parameters<F>) => any>(fn: F, waitMs?: number): DebouncedFunction<F>;