mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-22 01:23:57 +02:00
28 lines
800 B
TypeScript
28 lines
800 B
TypeScript
/*
|
|
Copyright 2021-2024 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { type BrowserWindow } from "electron";
|
|
|
|
import type AutoLaunch from "auto-launch";
|
|
import { type AppLocalization } from "../language-helper.js";
|
|
|
|
// global type extensions need to use var for whatever reason
|
|
/* eslint-disable no-var */
|
|
declare global {
|
|
var mainWindow: BrowserWindow | null;
|
|
var appQuitting: boolean;
|
|
var appLocalization: AppLocalization;
|
|
var launcher: AutoLaunch;
|
|
var vectorConfig: Record<string, any>;
|
|
var trayConfig: {
|
|
// eslint-disable-next-line camelcase
|
|
icon_path: string;
|
|
brand: string;
|
|
};
|
|
}
|
|
/* eslint-enable no-var */
|