UNPKG

backsplash-app

Version:
27 lines (24 loc) 878 B
import { globals } from "src/preload"; import { IpcRendererEvent } from "electron"; declare global { const electron: typeof globals; const __WIN32__: boolean; const __DARWIN__: boolean; const __LINUX__: boolean; const __DEV__: boolean; const __APP_NAME__: string; const __APP_VERSION__: string; } declare global { interface Window { electron: { ipcRenderer: { invoke: <Arguments, Payload>(channel: string, ...args: Arguments[]) => Promise<Payload>; on: (channel: string, listener: (event: IpcRendererEvent, ...args: any[]) => void) => void; once: (channel: string, listener: (event: IpcRendererEvent, ...args: any[]) => void) => void; removeListener: (channel: string, listener: (event: IpcRendererEvent, ...args: any[]) => void) => void; send: (channel: string, ...args: any[]) => void; }; }; } }