Skip to content

Commit 5db02ff

Browse files
committed
updates to the docs
1 parent cb3c5de commit 5db02ff

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

docs/api/browser-view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Class: BrowserView
1+
# Class: BrowserView
22

33
> Create and control views.
44

docs/api/browser-window-proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ The `BrowserWindowProxy` object has the following instance properties:
5050

5151
#### `win.closed`
5252

53-
A Boolean that is set to true after the child window gets closed.
53+
A `Boolean` that is set to true after the child window gets closed.

docs/api/client-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Emitted when there is redirection and the mode is `manual`. Calling
143143

144144
#### `request.chunkedEncoding`
145145

146-
A Boolean specifying whether the request will use HTTP chunked transfer encoding
146+
A `Boolean` specifying whether the request will use HTTP chunked transfer encoding
147147
or not. Defaults to false. The property is readable and writable, however it can
148148
be set only before the first write operation as the HTTP headers are not yet put
149149
on the wire. Trying to set the `chunkedEncoding` property after the first write
@@ -184,7 +184,7 @@ before first write. Trying to call it after the first write will throw an error.
184184
string, it is converted into a Buffer using the specified encoding.
185185
* `encoding` String (optional) - Used to convert string chunks into Buffer
186186
objects. Defaults to 'utf-8'.
187-
* `callback` Function (optional) - Called after the write operation ends.
187+
* `callback` Function (optional) - Called after the write operation ends.
188188

189189
`callback` is essentially a dummy function introduced in the purpose of keeping
190190
similarity with the Node.js API. It is called asynchronously in the next tick

docs/api/incoming-message.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ An `IncomingMessage` instance has the following readable properties:
4343

4444
#### `response.statusCode`
4545

46-
An Integer indicating the HTTP response status code.
46+
An `Integer` indicating the HTTP response status code.
4747

4848
#### `response.statusMessage`
4949

50-
A String representing the HTTP status message.
50+
A `String` representing the HTTP status message.
5151

5252
#### `response.headers`
5353

54-
An Object representing the response HTTP headers. The `headers` object is
54+
An `Object` representing the response HTTP headers. The `headers` object is
5555
formatted as follows:
5656

5757
* All header names are lowercased.
@@ -60,15 +60,15 @@ formatted as follows:
6060

6161
#### `response.httpVersion`
6262

63-
A String indicating the HTTP protocol version number. Typical values are '1.0'
63+
A `String` indicating the HTTP protocol version number. Typical values are '1.0'
6464
or '1.1'. Additionally `httpVersionMajor` and `httpVersionMinor` are two
6565
Integer-valued readable properties that return respectively the HTTP major and
6666
minor version numbers.
6767

6868
#### `response.httpVersionMajor`
6969

70-
An Integer indicating the HTTP protocol major version number.
70+
An `Integer` indicating the HTTP protocol major version number.
7171

7272
#### `response.httpVersionMinor`
7373

74-
An Integer indicating the HTTP protocol minor version number.
74+
An `Integer` indicating the HTTP protocol minor version number.

docs/api/menu-item.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ The following properties are available on instances of `MenuItem`:
9393

9494
#### `menuItem.enabled`
9595

96-
A Boolean indicating whether the item is enabled, this property can be
96+
A `Boolean` indicating whether the item is enabled, this property can be
9797
dynamically changed.
9898

9999
#### `menuItem.visible`
100100

101-
A Boolean indicating whether the item is visible, this property can be
101+
A `Boolean` indicating whether the item is visible, this property can be
102102
dynamically changed.
103103

104104
#### `menuItem.checked`
105105

106-
A Boolean indicating whether the item is checked, this property can be
106+
A `Boolean` indicating whether the item is checked, this property can be
107107
dynamically changed.
108108

109109
A `checkbox` menu item will toggle the `checked` property on and off when
@@ -116,8 +116,8 @@ You can add a `click` function for additional behavior.
116116

117117
#### `menuItem.label`
118118

119-
A String representing the menu items visible label
119+
A `String` representing the menu items visible label
120120

121121
#### `menuItem.click`
122122

123-
A Function that is fired when the MenuItem receives a click event
123+
A `Function` that is fired when the MenuItem receives a click event

docs/api/menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Class: Menu
1+
# Class: Menu
22

33
> Create native application menus and context menus.
44
@@ -101,7 +101,7 @@ Inserts the `menuItem` to the `pos` position of the menu.
101101

102102
#### `menu.items`
103103

104-
A MenuItem[] array containing the menu's items.
104+
A `MenuItem[]` array containing the menu's items.
105105

106106
Each `Menu` consists of multiple [`MenuItem`](menu-item.md)s and each `MenuItem`
107107
can have a submenu.

docs/api/touch-bar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Class: TouchBar
1+
# Class: TouchBar
22

33
> Create TouchBar layouts for native macOS applications
44
55
Process: [Main](../tutorial/quick-start.md#main-process)
66

77
### `new TouchBar(options)` _Experimental_
88

9-
* `options` - Object
9+
* `options` Object
1010
* `items` ([TouchBarButton](touch-bar-button.md) | [TouchBarColorPicker](touch-bar-color-picker.md) | [TouchBarGroup](touch-bar-group.md) | [TouchBarLabel](touch-bar-label.md) | [TouchBarPopover](touch-bar-popover.md) | [TouchBarScrubber](touch-bar-scrubber.md) | [TouchBarSegmentedControl](touch-bar-segmented-control.md) | [TouchBarSlider](touch-bar-slider.md) | [TouchBarSpacer](touch-bar-spacer.md))[]
1111
* `escapeItem` ([TouchBarButton](touch-bar-button.md) | [TouchBarColorPicker](touch-bar-color-picker.md) | [TouchBarGroup](touch-bar-group.md) | [TouchBarLabel](touch-bar-label.md) | [TouchBarPopover](touch-bar-popover.md) | [TouchBarScrubber](touch-bar-scrubber.md) | [TouchBarSegmentedControl](touch-bar-segmented-control.md) | [TouchBarSlider](touch-bar-slider.md) | [TouchBarSpacer](touch-bar-spacer.md)) (optional)
1212

@@ -26,7 +26,7 @@ The following properties are available on instances of `TouchBar`:
2626

2727
#### `touchBar.escapeItem`
2828

29-
The `TouchBarItem` that will replace the "esc" button on the touch bar when set.
29+
The `TouchBarButton` that will replace the "esc" button on the touch bar when set.
3030
Setting to `null` restores the default "esc" button. Changing this value
3131
immediately updates the escape item in the touch bar.
3232

docs/api/web-contents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,11 +1335,11 @@ Returns `Integer` - The `pid` of the associated renderer process.
13351335

13361336
#### `contents.id`
13371337

1338-
A Integer representing the unique ID of this WebContents.
1338+
A `Integer` representing the unique ID of this WebContents.
13391339

13401340
#### `contents.session`
13411341

1342-
A Session object ([session](session.md)) used by this webContents.
1342+
A [`Session`](session.md) used by this webContents.
13431343

13441344
#### `contents.hostWebContents`
13451345

0 commit comments

Comments
 (0)