From dbdf0816ed4e7118e3b87dbc28a833ea2631930f Mon Sep 17 00:00:00 2001 From: MarkusRost <37275477+Markus-Rost@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:57:57 +0200 Subject: [PATCH] fix typescript --- websites/M/Minecraft Wiki/presence.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websites/M/Minecraft Wiki/presence.ts b/websites/M/Minecraft Wiki/presence.ts index 220d5ca46d58..78dcf9939a23 100644 --- a/websites/M/Minecraft Wiki/presence.ts +++ b/websites/M/Minecraft Wiki/presence.ts @@ -2,7 +2,7 @@ const presence = new Presence({ clientId: "1232903356025143297", }), browsingTimestamp = Math.floor(Date.now() / 1000); -var veactionLast: string? = null; +var veactionLast: string | null = null; function hasPermissions(): boolean { return !document.querySelector(".permissions-errors"); @@ -43,8 +43,8 @@ async function prepare(): Promise { wgTitle: string; wgCanonicalSpecialPageName: string | false; wgRelevantPageName: string; - wgRelevantUserName: string?; - wgIsMainPage: boolean?; + wgRelevantUserName: string | null; + wgIsMainPage: boolean | null; }>('mw"]["config"]["values'), mainPath = pathname.split("/").filter(Boolean)[1] ?? "/", pageTitle = mwConfig.wgPageName.replace(/_/g, "");