mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-01 15:30:52 +08:00
41 lines
863 B
TypeScript
41 lines
863 B
TypeScript
/* eslint-disable no-redeclare */
|
|
import { createRequire } from "node:module";
|
|
import type * as Electron from "electron";
|
|
|
|
const requireElectron = createRequire(import.meta.url);
|
|
const electron = requireElectron("electron") as typeof Electron;
|
|
|
|
export const {
|
|
app,
|
|
autoUpdater,
|
|
BrowserWindow,
|
|
clipboard,
|
|
dialog,
|
|
globalShortcut,
|
|
ipcMain,
|
|
Menu,
|
|
nativeImage,
|
|
Notification,
|
|
net,
|
|
screen,
|
|
session,
|
|
shell,
|
|
protocol,
|
|
Tray,
|
|
WebContentsView,
|
|
} = electron;
|
|
|
|
export type BrowserWindow = Electron.BrowserWindow;
|
|
export type Menu = Electron.Menu;
|
|
export type Rectangle = Electron.Rectangle;
|
|
export type Tray = Electron.Tray;
|
|
export type WebContentsView = Electron.WebContentsView;
|
|
|
|
export type {
|
|
IpcMainInvokeEvent,
|
|
MenuItemConstructorOptions,
|
|
NotificationConstructorOptions,
|
|
OpenDialogOptions,
|
|
SaveDialogOptions,
|
|
} from "electron";
|