mirror of
https://github.com/upscayl/upscayl.git
synced 2024-12-14 00:22:59 +01:00
14 lines
263 B
TypeScript
14 lines
263 B
TypeScript
|
import { IpcRenderer } from "electron";
|
||
|
|
||
|
export interface IElectronAPI {
|
||
|
on: (command, func?) => IpcRenderer;
|
||
|
send: (command, func?) => IpcRenderer;
|
||
|
invoke: (command, func?) => any;
|
||
|
}
|
||
|
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
electron: IElectronAPI;
|
||
|
}
|
||
|
}
|