This commit is contained in:
Adria Navarro 2025-01-30 12:39:25 +01:00
parent 8553960ce6
commit 735b8206ce
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export const sequential = <
* @returns a debounced version of the callback
*/
export const debounce = (callback: Function, minDelay = 1000) => {
let timeout: NodeJS.Timeout
let timeout: ReturnType<typeof setTimeout>
return async (...params: any[]) => {
return new Promise(resolve => {
if (timeout) {