diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 6268c97924..f20b02c50a 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;