import { ipcRenderer } from 'electron'; function sendCredentials(credentials: ICredentials) { ipcRenderer.send(IpcChannels.Credentials, credentials); } ipcRenderer.on(IpcChannels.Pong, (event, ...args: any) => { console.log(args); }); export default { sendCredentials, };