Skip to content

Commit

Permalink
docs: fix return type for ipcMain handle functions (electron#39237)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 1, 2023
1 parent 1f19a74 commit 0eef6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/ipc-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Removes listeners of the specified `channel`.
### `ipcMain.handle(channel, listener)`

* `channel` string
* `listener` Function<Promise\<void&#62; | any&#62;
* `listener` Function<Promise\<any&#62; | any&#62;
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
* `...args` any[]

Expand Down Expand Up @@ -109,7 +109,7 @@ provided to the renderer process. Please refer to
### `ipcMain.handleOnce(channel, listener)`

* `channel` string
* `listener` Function<Promise\<void&#62; | any&#62;
* `listener` Function<Promise\<any&#62; | any&#62;
* `event` [IpcMainInvokeEvent][ipc-main-invoke-event]
* `...args` any[]

Expand Down

0 comments on commit 0eef6c6

Please sign in to comment.