diff --git a/src/webpage/index.ts b/src/webpage/index.ts index 2388a98..92f8144 100644 --- a/src/webpage/index.ts +++ b/src/webpage/index.ts @@ -4,7 +4,8 @@ import {mobile, Specialuser} from "./utils/utils.js"; import {setTheme} from "./utils/utils.js"; import {MarkDown} from "./markdown.js"; import {I18n} from "./i18n.js"; -import "./utils/pollyfills.js"; +import {nothing} from "./utils/pollyfills.js"; +nothing; import {makeLogin} from "./login.js"; import {Hover} from "./hover.js"; import "./templatePage.js"; diff --git a/src/webpage/utils/pollyfills.ts b/src/webpage/utils/pollyfills.ts index 2ad5082..f83e485 100644 --- a/src/webpage/utils/pollyfills.ts +++ b/src/webpage/utils/pollyfills.ts @@ -75,3 +75,4 @@ ReadableStream.prototype[Symbol.asyncIterator] ??= async function* () { if (done) return undefined; } }; +export const nothing = void 0; diff --git a/tsconfig.json b/tsconfig.json index 63d59c8..8ebe7dc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "noImplicitReturns": true, "noUnusedLocals": true, "noUnusedParameters": true, - "preserveConstEnums": true, + "preserveConstEnums": false, "pretty": true, "removeComments": false, "resolveJsonModule": true, @@ -27,7 +27,7 @@ "resolvePackageJsonImports": true, "skipLibCheck": true, "outDir": "./dist", - "types": ["node","audioworklet"] + "types": ["node", "audioworklet"] }, "include": ["src/**/*.ts"], "exclude": ["node_modules"]