1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-22 04:15:56 +01:00
upscayl/renderer/renderer.d.ts

15 lines
306 B
TypeScript
Raw Normal View History

2022-11-11 21:39:28 +01:00
import { IpcRenderer } from "electron";
export interface IElectronAPI {
on: (command, func?) => IpcRenderer;
2023-11-22 16:54:02 +01:00
send: <T>(command, func?: T) => IpcRenderer;
2022-11-11 21:39:28 +01:00
invoke: (command, func?) => any;
2023-08-30 06:54:16 +02:00
platform: "mac" | "win" | "linux";
2022-11-11 21:39:28 +01:00
}
declare global {
interface Window {
electron: IElectronAPI;
}
}