1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-16 02:42:36 +01:00
upscayl/renderer/renderer.d.ts
2024-09-24 20:05:33 +05:30

16 lines
346 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";
}
declare global {
interface Window {
electron: IElectronAPI;
}
}