ts: fix setTimeout return type for new tsc

This commit is contained in:
Harvey Tindall
2025-07-20 13:53:48 +01:00
parent 0595224daa
commit 492d5715fe

View File

@@ -14,7 +14,7 @@ export function newDiscordSearch(title: string, description: string, buttonText:
if (!window.discordEnabled) {
return () => {};
}
let timer: NodeJS.Timer;
let timer: ReturnType<typeof setTimeout>;
listeners[buttonText] = (event: CustomEvent) => {
clearTimeout(timer);
const list = document.getElementById("discord-list") as HTMLTableElement;