From e4b3b8585a735f9d3547082ab4b7722394e42a54 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Mon, 13 Feb 2023 18:26:19 +0900 Subject: [PATCH] main: add missing types --- src/main/IPCs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/IPCs.ts b/src/main/IPCs.ts index e62bd79..95b14c5 100644 --- a/src/main/IPCs.ts +++ b/src/main/IPCs.ts @@ -5,14 +5,14 @@ import Constants from './utils/Constants' * IPC Communications * */ export default class IPCs { - static initialize(window: BrowserWindow) { + static initialize(window: BrowserWindow): void { // Get application version ipcMain.on('msgRequestGetVersion', () => { window.webContents.send('msgReceivedVersion', Constants.APP_VERSION) }) // Open url via web browser - ipcMain.on('msgOpenExternalLink', async (event, url) => { + ipcMain.on('msgOpenExternalLink', async (event, url: string) => { await shell.openExternal(url) }) }