docs: fix return type for ipcMain handle functions (#39237)
This commit is contained in:
parent
1f19a74417
commit
0eef6c67d1
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ Removes listeners of the specified `channel`.
|
||||||
### `ipcMain.handle(channel, listener)`
|
### `ipcMain.handle(channel, listener)`
|
||||||
|
|
||||||
* `channel` string
|
* `channel` string
|
||||||
* `listener` Function<Promise\<void> | any>
|
* `listener` Function<Promise\<any> | any>
|
||||||
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
|
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
|
||||||
* `...args` any[]
|
* `...args` any[]
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ provided to the renderer process. Please refer to
|
||||||
### `ipcMain.handleOnce(channel, listener)`
|
### `ipcMain.handleOnce(channel, listener)`
|
||||||
|
|
||||||
* `channel` string
|
* `channel` string
|
||||||
* `listener` Function<Promise\<void> | any>
|
* `listener` Function<Promise\<any> | any>
|
||||||
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
|
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
|
||||||
* `...args` any[]
|
* `...args` any[]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue