perbaikan dashboard

This commit is contained in:
aji@catalis.app
2025-07-20 23:46:17 +07:00
parent 93a7261188
commit f0dbf419f3
4 changed files with 556 additions and 182 deletions

View File

@@ -0,0 +1,8 @@
export function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void {
let timeout: ReturnType<typeof setTimeout>;
return function (this: ThisParameterType<T>, ...args: Parameters<T>) {
const context = this;
clearTimeout(timeout);
timeout = setTimeout(() => func.apply(context, args), delay);
};
}