mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-15 10:22:37 +01:00
28 lines
606 B
TypeScript
28 lines
606 B
TypeScript
import { IpcRenderer } from "electron";
|
|
|
|
export interface IElectronAPI {
|
|
on: (command, func?) => IpcRenderer;
|
|
off: (command, func?) => IpcRenderer;
|
|
send: <T>(command, func?: T) => IpcRenderer;
|
|
invoke: (command, func?) => any;
|
|
platform: "mac" | "win" | "linux";
|
|
getSystemInfo: () => Promise<{
|
|
platform: string | undefined;
|
|
release: string;
|
|
arch: string | undefined;
|
|
model: string;
|
|
cpuCount: number;
|
|
gpu: {
|
|
vendor: any;
|
|
model: any;
|
|
};
|
|
}>;
|
|
getAppVersion: () => Promise<string>;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: IElectronAPI;
|
|
}
|
|
}
|