mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
ts: fix setTimeout return type for new tsc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user