From d97d403851fd35b15e0956c4e05179a02cb65c25 Mon Sep 17 00:00:00 2001 From: Elliott <85990359+Ell1ott@users.noreply.github.com> Date: Fri, 23 Feb 2024 23:22:04 +0100 Subject: [PATCH] fix type --- src/lib/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index 1edd1748..82181ec9 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -16,7 +16,7 @@ export default class ApiHandler { // eslint-disable-next-line @typescript-eslint/no-explicit-any debounce(func: any, timeout = 300) { - let timer: number; + let timer: NodeJS.Timeout; // eslint-disable-next-line @typescript-eslint/no-explicit-any return (...args: any) => { clearTimeout(timer);