// Type definitions for Electron v0.37.2 // Project: http://electron.atom.io/ // Definitions by: jedmao , rhysd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// declare namespace Electron { class IpcMain extends EventEmitter { on(event: string, listener: (event: IpcMainEvent, ...args: any[]) => any): this; } interface IpcMainEvent { returnValue?: any; sender: WebContents; } }