From 144a7ff3a1a554bd8a843d88c87516a3fe5e083c Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Mon, 27 Jan 2025 20:48:06 +0100 Subject: [PATCH] chore(types.d.ts): add missing platform prop to CustomGlobals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as used e.g. in dekstop.js – supplied via ejs (and then rendered via `./src/views/partials/windowGlobal` I left it as optional however, because e.g. it does not seem to exist on *all* pages --- src/public/app/types.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public/app/types.d.ts b/src/public/app/types.d.ts index 4c53d181f..b1750afb4 100644 --- a/src/public/app/types.d.ts +++ b/src/public/app/types.d.ts @@ -43,6 +43,7 @@ interface CustomGlobals { appCssNoteIds: string[]; triliumVersion: string; TRILIUM_SAFE_MODE: boolean; + platform?: typeof process.platform; } type RequireMethod = (moduleName: string) => any;