1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00
upscayl/renderer/renderer.d.ts
2023-08-30 10:24:16 +05:30

15 lines
300 B
TypeScript

import { IpcRenderer } from "electron";
export interface IElectronAPI {
on: (command, func?) => IpcRenderer;
send: (command, func?) => IpcRenderer;
invoke: (command, func?) => any;
platform: "mac" | "win" | "linux";
}
declare global {
interface Window {
electron: IElectronAPI;
}
}