1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-21 11:55:53 +01:00
upscayl/renderer/renderer.d.ts

15 lines
300 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;
send: (command, func?) => IpcRenderer;
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;
}
}