document the return value of ipcRenderer.sendSync

This commit is contained in:
Zeke Sikelianos 2017-06-27 12:01:39 -07:00
parent ab174f5e74
commit f646be2981

View file

@ -62,6 +62,8 @@ The main process handles it by listening for `channel` with `ipcMain` module.
* `channel` String * `channel` String
* `...args` any[] * `...args` any[]
Returns `any` - The value sent back by the [`ipcMain`](ipc-main.md) handler.
Send a message to the main process synchronously via `channel`, you can also Send a message to the main process synchronously via `channel`, you can also
send arbitrary arguments. Arguments will be serialized in JSON internally and send arbitrary arguments. Arguments will be serialized in JSON internally and
hence no functions or prototype chain will be included. hence no functions or prototype chain will be included.