✨ feat: refine type definitions and improve request handling in API layer
This commit is contained in:
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user