From 58a42682d8f6cca30c5e0ed68283c9a90960152f Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Sun, 25 Jun 2017 10:43:47 +0200 Subject: [PATCH 1/2] Fixes electron/electron-typescript-definitions/issues/63 --- docs/api/web-contents.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 563e0412825..6f662b469b3 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -932,8 +932,8 @@ Returns [`PrinterInfo[]`](structures/printer-info.md) #### `contents.print([options])` * `options` Object (optional) - * `silent` Boolean - Don't ask user for print settings. Default is `false`. - * `printBackground` Boolean - Also prints the background color and image of + * `silent` Boolean (optional) - Don't ask user for print settings. Default is `false`. + * `printBackground` Boolean (optional) - Also prints the background color and image of the web page. Default is `false`. * `deviceName` String (optional) - Set the printer device name to use. Default is `''`. From 43f7e42bf734a5aa29bcab471811973d80c241a3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 26 Jun 2017 08:50:00 -0700 Subject: [PATCH 2/2] Mark silent/printBackground as optional --- docs/api/webview-tag.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 0fcb0f8ad50..f4445872d01 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -537,8 +537,8 @@ Stops any `findInPage` request for the `webview` with the provided `action`. ### `.print([options])` * `options` Object (optional) - * `silent` Boolean - Don't ask user for print settings. Default is `false`. - * `printBackground` Boolean - Also prints the background color and image of + * `silent` Boolean (optional) - Don't ask user for print settings. Default is `false`. + * `printBackground` Boolean (optional) - Also prints the background color and image of the web page. Default is `false`. * `deviceName` String (optional) - Set the printer device name to use. Default is `''`.