docs: ensure that optionality matches between documented params and signatures (#18613)

* docs: ensure that optionality matches between documented params and signatures

* docs: ensure that all optional declarations are lower case

* chore: fix broken link
This commit is contained in:
Samuel Attard
2019-06-04 14:03:24 -07:00
committed by GitHub
parent 69e32ad9ce
commit f80601da16
14 changed files with 127 additions and 33 deletions

View File

@@ -557,7 +557,7 @@ Returns `Promise<NativeImage>` - Resolves with a [NativeImage](native-image.md)
Captures a snapshot of the page within `rect`. Omitting `rect` will capture the whole visible page.
### `<webview>.send(channel[, arg1][, arg2][, ...])`
### `<webview>.send(channel, ...args)`
* `channel` String
* `...args` any[]
@@ -566,7 +566,7 @@ Send an asynchronous message to renderer process via `channel`, you can also
send arbitrary arguments. The renderer process can handle the message by
listening to the `channel` event with the [`ipcRenderer`](ipc-renderer.md) module.
See [webContents.send](web-contents.md#contentssendchannel-arg1-arg2-) for
See [webContents.send](web-contents.md#contentssendchannel-args) for
examples.
### `<webview>.sendInputEvent(event)`