* Event = Base event type (with preventDefault) * IpcMainEvent = Event that ipcMain emits (with sender, reply, etc.) * IpcRendererEvent = Event that ipcRenderer emits (with sender, senderId, etc.) * KeyboardEvent = Event that we emit with keyboard flags (ctrlKey, altKey, etc.) This will dramatically improve peoples TS experience with IPC events
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			237 B
			
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			237 B
			
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { EventEmitter } from 'events'
 | 
						|
 | 
						|
const emitter = new EventEmitter()
 | 
						|
 | 
						|
// Do not throw exception when channel name is "error".
 | 
						|
emitter.on('error', () => {})
 | 
						|
 | 
						|
export const ipcMainInternal = emitter as ElectronInternal.IpcMainInternal
 |