feat: refine type definitions and improve request handling in API layer

This commit is contained in:
2026-02-25 17:44:49 +00:00
parent 3b84e49383
commit 74bb860d4f
6 changed files with 36 additions and 34 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
export function debounce<T extends (...args: any[]) => void>(func: T, wait: number): (...args: Parameters<T>) => void {
export function debounce<T extends (...args: never[]) => void>(
func: T,
wait: number
): (...args: Parameters<T>) => void {
let timeout: NodeJS.Timeout | null = null
return (...args: Parameters<T>) => {