Merge pull request #9460 from electron/fix-docs-typescript
Fix docs for TypeScript definitions
This commit is contained in:
commit
a6e11d3b63
3 changed files with 9 additions and 9 deletions
|
@ -1028,7 +1028,7 @@ Same as `webContents.capturePage([rect, ]callback)`.
|
||||||
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
||||||
* `userAgent` String (optional) - A user agent originating the request.
|
* `userAgent` String (optional) - A user agent originating the request.
|
||||||
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
||||||
* `postData` ([UploadRawData](structures/upload-raw-data.md) | [UploadFile](structures/upload-file.md) | [UploadFileSystem](structures/upload-file-system.md) | [UploadBlob](structures/upload-blob.md))[] - (optional)
|
* `postData` ([UploadRawData[]](structures/upload-raw-data.md) | [UploadFile[]](structures/upload-file.md) | [UploadFileSystem[]](structures/upload-file-system.md) | [UploadBlob[]](structures/upload-blob.md)) - (optional)
|
||||||
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
||||||
|
|
||||||
Same as `webContents.loadURL(url[, options])`.
|
Same as `webContents.loadURL(url[, options])`.
|
||||||
|
|
|
@ -567,7 +567,7 @@ that can't be set via `<webview>` attributes.
|
||||||
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
||||||
* `userAgent` String (optional) - A user agent originating the request.
|
* `userAgent` String (optional) - A user agent originating the request.
|
||||||
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
||||||
* `postData` ([UploadRawData](structures/upload-raw-data.md) | [UploadFile](structures/upload-file.md) | [UploadFileSystem](structures/upload-file-system.md) | [UploadBlob](structures/upload-blob.md))[] - (optional)
|
* `postData` ([UploadRawData[]](structures/upload-raw-data.md) | [UploadFile[]](structures/upload-file.md) | [UploadFileSystem[]](structures/upload-file-system.md) | [UploadBlob[]](structures/upload-blob.md)) - (optional)
|
||||||
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
||||||
|
|
||||||
Loads the `url` in the window. The `url` must contain the protocol prefix,
|
Loads the `url` in the window. The `url` must contain the protocol prefix,
|
||||||
|
|
|
@ -312,7 +312,7 @@ webview.addEventListener('dom-ready', () => {
|
||||||
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
* `httpReferrer` String (optional) - A HTTP Referrer url.
|
||||||
* `userAgent` String (optional) - A user agent originating the request.
|
* `userAgent` String (optional) - A user agent originating the request.
|
||||||
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
* `extraHeaders` String (optional) - Extra headers separated by "\n"
|
||||||
* `postData` ([UploadRawData](structures/upload-raw-data.md) | [UploadFile](structures/upload-file.md) | [UploadFileSystem](structures/upload-file-system.md) | [UploadBlob](structures/upload-blob.md))[] - (optional)
|
* `postData` ([UploadRawData[]](structures/upload-raw-data.md) | [UploadFile[]](structures/upload-file.md) | [UploadFileSystem[]](structures/upload-file-system.md) | [UploadBlob[]](structures/upload-blob.md)) - (optional)
|
||||||
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
* `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files.
|
||||||
|
|
||||||
Loads the `url` in the webview, the `url` must contain the protocol prefix,
|
Loads the `url` in the webview, the `url` must contain the protocol prefix,
|
||||||
|
@ -511,14 +511,14 @@ Inserts `text` to the focused element.
|
||||||
|
|
||||||
* `text` String - Content to be searched, must not be empty.
|
* `text` String - Content to be searched, must not be empty.
|
||||||
* `options` Object (optional)
|
* `options` Object (optional)
|
||||||
* `forward` Boolean - Whether to search forward or backward, defaults to `true`.
|
* `forward` Boolean - (optional) Whether to search forward or backward, defaults to `true`.
|
||||||
* `findNext` Boolean - Whether the operation is first request or a follow up,
|
* `findNext` Boolean - (optional) Whether the operation is first request or a follow up,
|
||||||
defaults to `false`.
|
defaults to `false`.
|
||||||
* `matchCase` Boolean - Whether search should be case-sensitive,
|
* `matchCase` Boolean - (optional) Whether search should be case-sensitive,
|
||||||
defaults to `false`.
|
defaults to `false`.
|
||||||
* `wordStart` Boolean - Whether to look only at the start of words.
|
* `wordStart` Boolean - (optional) Whether to look only at the start of words.
|
||||||
defaults to `false`.
|
defaults to `false`.
|
||||||
* `medialCapitalAsWordStart` Boolean - When combined with `wordStart`,
|
* `medialCapitalAsWordStart` Boolean - (optional) When combined with `wordStart`,
|
||||||
accepts a match in the middle of a word if the match begins with an
|
accepts a match in the middle of a word if the match begins with an
|
||||||
uppercase letter followed by a lowercase or non-letter.
|
uppercase letter followed by a lowercase or non-letter.
|
||||||
Accepts several other intra-word matches, defaults to `false`.
|
Accepts several other intra-word matches, defaults to `false`.
|
||||||
|
|
Loading…
Reference in a new issue