1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-15 10:22:37 +01:00
upscayl/renderer/renderer.d.ts
2024-12-16 16:18:57 +05:30

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;
}
}