From 492d5715fe3f4aacaebc23f566e5e76eae11954a Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 20 Jul 2025 13:53:48 +0100 Subject: [PATCH] ts: fix setTimeout return type for new tsc --- ts/modules/discord.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/modules/discord.ts b/ts/modules/discord.ts index f773ccf..6dd785f 100644 --- a/ts/modules/discord.ts +++ b/ts/modules/discord.ts @@ -14,7 +14,7 @@ export function newDiscordSearch(title: string, description: string, buttonText: if (!window.discordEnabled) { return () => {}; } - let timer: NodeJS.Timer; + let timer: ReturnType; listeners[buttonText] = (event: CustomEvent) => { clearTimeout(timer); const list = document.getElementById("discord-list") as HTMLTableElement;