From 59185e229787559b1feef145fa66b130cc26285b Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 14 Aug 2021 15:48:18 +0300 Subject: [PATCH] Remove conflicting global HTMLElement type declaration Discord.js depends on @discordjs/builders, which depends on @sindresorhus/is, which references the "dom" library for TypeScript, which includes a declaration for HTMLElement. --- backend/src/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 7ab1032d..bfbab3f0 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -26,14 +26,6 @@ if (!process.env.KEY) { process.exit(1); } -declare global { - // This is here so TypeScript doesn't give an error when importing twemoji - // since one of the signatures of twemoji.parse() takes an HTMLElement but - // we're not in a browser environment so including the DOM lib would not make - // sense - type HTMLElement = unknown; -} - // Error handling let recentPluginErrors = 0; const RECENT_PLUGIN_ERROR_EXIT_THRESHOLD = 5;