Fix electron typing again again (#7788)

pull/21833/head
Michael Telatynski 2022-02-11 13:03:51 +00:00 committed by GitHub
parent b5e7d12f76
commit 0e3b559671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -109,12 +109,16 @@ declare global {
mxActiveWidgetStore?: ActiveWidgetStore; mxActiveWidgetStore?: ActiveWidgetStore;
mxSkinner?: Skinner; mxSkinner?: Skinner;
mxOnRecaptchaLoaded?: () => void; 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<void>; mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;
mxLoginWithAccessToken: (hsUrl: string, accessToken: string) => Promise<void>; mxLoginWithAccessToken: (hsUrl: string, accessToken: string) => Promise<void>;
mxAutoRageshakeStore?: AutoRageshakeStore; mxAutoRageshakeStore?: AutoRageshakeStore;
} }
interface Electron {
// will be extended by element-web downstream
}
interface DesktopCapturerSource { interface DesktopCapturerSource {
id: string; id: string;
name: string; name: string;