You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, data: unknown[] is defined. When transmitting, it is very difficult to know in the main process what data type is passed in. This should be optimized. Determine a data structure.
The text was updated successfully, but these errors were encountered:
Excuse me, is there a relatively good Typescript encapsulation for the communication between ipcMain and ipcRenderer?
According to the code written in the official documentation:
In the main process:
In the renderer process:
This usage is not very good because:
send/sendSync/sendTo/invoke
. And sometimes when the main process listens, it is:For the transmitted content:
Generally,
data: unknown[]
is defined. When transmitting, it is very difficult to know in the main process what data type is passed in. This should be optimized. Determine a data structure.The text was updated successfully, but these errors were encountered: