UNPKG

ngx-electron-croft

Version:

access Electron Renderer APIs easily using an Angular Service

21 lines (20 loc) 727 B
import * as Electron from 'electron'; export declare class ElectronService { private _electron; private readonly electron; /** * determines if SPA is running in Electron * @returns {boolean} */ readonly isElectronApp: boolean; readonly desktopCapturer: Electron.DesktopCapturer; readonly ipcRenderer: Electron.IpcRenderer; readonly remote: Electron.Remote; readonly webFrame: Electron.WebFrame; readonly clipboard: Electron.Clipboard; readonly crashReporter: Electron.CrashReporter; readonly process: NodeJS.Process; readonly nativeImage: typeof Electron.nativeImage; readonly screen: Electron.Screen; readonly shell: Electron.Shell; }