RenaiApp/src/renderer/services/api.ts

14 lines
281 B
TypeScript
Raw Normal View History

import { ipcRenderer } from 'electron';
function sendCredentials(credentials: ICredentials) {
2019-06-19 00:15:16 +02:00
ipcRenderer.send(IpcChannels.Credentials, credentials);
}
2019-06-19 00:15:16 +02:00
ipcRenderer.on(IpcChannels.Pong, (event, ...args: any) => {
console.log(args);
});
export default {
sendCredentials,
};