1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-24 23:13:45 +01:00
upscayl/renderer/renderer.d.ts

15 lines
306 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;
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";
2022-11-12 02:09:28 +05:30
}
declare global {
interface Window {
electron: IElectronAPI;
}
}