1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-19 12:15:47 +01:00
upscayl/renderer/renderer.d.ts

25 lines
581 B
TypeScript
Raw Normal View History

2022-11-12 02:09:28 +05:30
import { IpcRenderer } from "electron";
export interface IElectronAPI {
on: (command, func?) => IpcRenderer;
off: (command, func?) => IpcRenderer;
2023-11-22 21:24:02 +05:30
send: <T>(command, func?: T) => IpcRenderer;
2022-11-12 02:09:28 +05:30
invoke: (command, func?) => any;
2023-08-30 10:24:16 +05:30
platform: "mac" | "win" | "linux";
2024-12-16 16:18:57 +05:30
getSystemInfo: () => Promise<{
platform: string | undefined;
release: string;
arch: string | undefined;
model: string;
cpuCount: number;
2024-12-20 09:33:28 +05:30
gpu: Record<string, any>;
2024-12-16 16:18:57 +05:30
}>;
getAppVersion: () => Promise<string>;
2022-11-12 02:09:28 +05:30
}
declare global {
interface Window {
electron: IElectronAPI;
}
}