mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
15 lines
306 B
TypeScript
15 lines
306 B
TypeScript
import { IpcRenderer } from "electron";
|
|
|
|
export interface IElectronAPI {
|
|
on: (command, func?) => IpcRenderer;
|
|
send: <T>(command, func?: T) => IpcRenderer;
|
|
invoke: (command, func?) => any;
|
|
platform: "mac" | "win" | "linux";
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: IElectronAPI;
|
|
}
|
|
}
|