fix: fix incorrect return type

This commit is contained in:
leejooy96 committed 2024-01-17 10:51:48 +09:00
1 parent d21e84c6da
commit 9d1796212a
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ contextBridge.exposeInMainWorld('mainApi', {
throw new Error(`Unknown ipc channel name: ${channel}`)
}
},
sendSync: (channel: string, ...data: any[]): void => {
sendSync: (channel: string, ...data: any[]): any => {
if (mainAvailChannels.includes(channel)) {
return ipcRenderer.sendSync.apply(null, [channel, ...data])
}