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) {
|
if (!window.discordEnabled) {
|
||||||
return () => {};
|
return () => {};
|
||||||
}
|
}
|
||||||
let timer: NodeJS.Timer;
|
let timer: ReturnType<typeof setTimeout>;
|
||||||
listeners[buttonText] = (event: CustomEvent) => {
|
listeners[buttonText] = (event: CustomEvent) => {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
const list = document.getElementById("discord-list") as HTMLTableElement;
|
const list = document.getElementById("discord-list") as HTMLTableElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user