From 0e3b55967144666a32b589a31bd05962e40ca2ac Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 11 Feb 2022 13:03:51 +0000 Subject: [PATCH] Fix electron typing again again (#7788) --- src/@types/global.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 6268c979241..f20b02c50a7 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -109,12 +109,16 @@ declare global { mxActiveWidgetStore?: ActiveWidgetStore; mxSkinner?: Skinner; mxOnRecaptchaLoaded?: () => void; - electron?: {}; // we should not rely on any fields on this in this layer + electron?: Electron; mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise; mxLoginWithAccessToken: (hsUrl: string, accessToken: string) => Promise; mxAutoRageshakeStore?: AutoRageshakeStore; } + interface Electron { + // will be extended by element-web downstream + } + interface DesktopCapturerSource { id: string; name: string;